[Python-Dev] eq vs hash (original) (raw)
Guido van Rossum guido at python.org
Fri Apr 4 16:38:04 CEST 2008
- Previous message: [Python-Dev] __eq__ vs hash
- Next message: [Python-Dev] __eq__ vs hash
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Apr 4, 2008 at 2:46 AM, Ralf Schmitt <schmir at gmail.com> wrote:
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).
Well, technically this has always been the requirement.
What specific code breaks? Maybe we need to turn this into a warning in order to be more backwards compatible?
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] __eq__ vs hash
- Next message: [Python-Dev] __eq__ vs hash
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]