[Python-Dev] eq vs hash (original) (raw)

Ralf Schmitt schmir at gmail.com
Fri Apr 4 11:46:46 CEST 2008


Hi all,

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 whatsnew file).



More information about the Python-Dev mailing list