id( ) function question

Aahz aahz at pythoncraft.com
Sun Oct 18 00:29:13 CEST 2009


In article <mailman.1455.1255622678.2807.python-list at python.org>,
Laszlo Nagy  <gandalf at shopzeus.com> wrote:
>
>All right, I see your point now. So can we say, that the id function can 
>be used to tell if two mutable objects are different as long as they are 
>both alive during the comparison?

Yes
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"To me vi is Zen.  To use vi is to practice zen.  Every command is a
koan.  Profound to the user, unintelligible to the uninitiated.  You
discover truth everytime you use it."  --reddy at lion.austin.ibm.com



More information about the Python-list mailing list