Antoine Pitrou <pit...@free.fr> added the comment:

The definition of __eq__ is wrong: it shouldn't compare the hashes since the 
hash() function isn't injective. For example, 0 and "" have equal hashes, yet 
they are unequal.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7502>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to