"/a" is not "/a" ?

Ben Finney bignose+hates-spam at benfinney.id.au
Fri Mar 6 19:07:12 EST 2009


"Emanuele D'Arrigo" <manu3d at gmail.com> writes:

> I just find it peculiar more than a nuisance, but I'll go to the
> blackboard and write 100 times "never compare the identities of two
> immutables". Thank you all!

That's the wrong lesson to learn from this.

The right lesson to learn is, “Equality comparison is not the same
operation as identity comparison. Use the right tool for the situation
at hand.”

-- 
 \       “Facts are meaningless. You could use facts to prove anything |
  `\                that's even remotely true!” —Homer, _The Simpsons_ |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list