conventions/requirements for 'is' vs '==', 'not vs '!=', etc
Ulrich Eckhardt
eckhardt at satorlaser.com
Tue May 20 04:54:08 EDT 2008
Asun Friere wrote:
> Well you have to be careful in case some smartarse comes back with a
> class with something like this in it:
>
> def __eq__ (self, other) :
> if self is other : return False
That's pretty paranoid. :)
Who said that? (:
Uli
--
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
More information about the Python-list
mailing list