Question on class member in python

Tau thetau at gmail.com
Mon Oct 17 04:38:35 EDT 2005


Get answer by typing:
id(a.member)==id(a.getMember())

You will often find id() useful when in doubt whether the two objects
are distinct.




More information about the Python-list mailing list