[Python-Dev] __eq__ vs hash
schmir at gmail.com
Fri Apr 4 11:46:46 CEST 2008
the news file for python 2.6 does not mention that you need to define
__hash__ in case you define __eq__ for a class.
This breaks some code (for me: mercurial and pyparsing).
Shouldn't this be documented somewhere (I also cannot find it in the
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev