[issue2235] __eq__ / __hash__ check doesn't take inheritance into account
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Mar 5 01:00:52 CET 2008
Amaury Forgeot d'Arc added the comment:
The attached patch reverts r59576 and the part of r59106 about the
tp_hash slot.
It also adds the py3k warning::
type defines __eq__ but not __hash__, and will not be hashable in 3.x
printed when calling hash() on such an object.
----------
keywords: +patch
Added file: http://bugs.python.org/file9607/inherit_hash.patch
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2235>
__________________________________
More information about the Python-bugs-list
mailing list