[issue2235] __eq__ / __hash__ check doesn't take inheritance into account
Amaury Forgeot d'Arc
report at bugs.python.org
Fri Apr 11 01:44:08 CEST 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Here is a new patch, all tests pass.
- no warning for classic classes
- added tests for -3 warnings
I had to add two TPSLOT entries to the slodefs list; can you please
check that this is correct (I wanted to reset tp_hash to NULL when
__eq__ or __cmp__ are defined).
Added file: http://bugs.python.org/file10002/inherit_hash3.patch
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2235>
__________________________________
More information about the Python-bugs-list
mailing list