"Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote in 
message news:[EMAIL PROTECTED]
>id(object) -> integer
>Return the identity of an object.  This is guaranteed to be unique among 
>simultaneously existing objects.

This is part of the language specification.  Also, the identity of an 
object must remain the same for its entire lifetime.

>  (Hint: it's the object's memory address.)

This is an implementation detail of CPython.  It cannot be true if the 
garbage collector moves objects around.  Or if the object lives elsewhere 
(and is accessed thru a proxy).

Terry J. Reedy





-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to