[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

Amaury Forgeot d'Arc report at bugs.python.org
Wed Mar 5 01:48:32 CET 2008


Amaury Forgeot d'Arc added the comment:

Ah, I remember that it took me some time to understand the boundaries
between a slot and the corresponding special method.

Here is another version of the patch, which does not test tp_hash while
we are currently running the tp_hash function...
I also added the warning for old-style classes.

Added file: http://bugs.python.org/file9608/inherit_hash2.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2235>
__________________________________


More information about the Python-bugs-list mailing list