[issue1549] Regression with __hash__ definition and rich comparison operators
report at bugs.python.org
Tue Dec 4 12:02:52 CET 2007
Thomas Herve added the comment:
I gave it a try. The following patch corrects 2 problems:
* classes with only __lt__ and __gt__ defined are hashable
* classes defining __eq__ get a meaningful exception.
I've restricted the hash_name_op to the bare minimum, but no tests
failed, so I supposed it was enough :).
Added file: http://bugs.python.org/file8871/1549_1.diff
Tracker <report at bugs.python.org>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Python-bugs-list