[Python-Dev] eq vs hash (original) (raw)
Ralf Schmitt schmir at gmail.com
Fri Apr 4 11:46:46 CEST 2008
- Previous message: [Python-Dev] [Python-3000] RELEASED Python 2.6a2 and 3.0a4
- Next message: [Python-Dev] __eq__ vs hash
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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).
- Ralf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20080404/a00b2a48/attachment-0001.htm
- Previous message: [Python-Dev] [Python-3000] RELEASED Python 2.6a2 and 3.0a4
- Next message: [Python-Dev] __eq__ vs hash
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]