ariel ledesma wrote:
well, i'm glad i stumbled upon this detail early on (i only had to fix about one page of code)... i'll just stick to 'is' when it concerns checking if it is the *same* object (memorywise) instead of an *equivalent* one... just before wrapping up, the special methods __eq__ and __ne__ are called upon == and !=, right? not for 'is', 'is not'...

Correct! You can't change the identity operator 'is' with a magic method.

Christian

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

Reply via email to