equality & comparison by default (was Re: Too many 'self' in python.That's a big flaw in this language.)

mmanns at gmx.net mmanns at gmx.net
Fri Jun 29 00:21:11 EDT 2007


On Fri, 29 Jun 2007 00:47:16 -0300
"Gabriel Genellina" <gagsl-py2 at yahoo.com.ar> wrote:
> __hash__ and equality tests are used by the dictionary
> implementation, and the default implementation is OK for immutable
> objects. 

That is probably why inf == inf yields True.
In this unique case, I do not like the default implementation.

Martin



More information about the Python-list mailing list