osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About the implementation of del in Python 3


Marko Rauhamaa writes:

> Jussi Piitulainen:
>
>> For me it's enough to know that it's the object itself that is passed
>> around as an argument, as a returned value, as a stored value, as a
>> value of a variable. This is the basic fact that lets me understand
>> the behaviour and performance of programs.
>
> That "definition" is very circular. You haven't yet defined what is
> "object itself". The word "self", in partucular, looks like yet
> another synonym of "identity".

Yes, I regard the identity of an object as the most *basic* thing.

> Anyway, it would be nice to have an explicit statement in the language
> definition that says that passing an argument and returning a value
> preserve the identity.

Isn't there? I think it's at least very strongly implied.