]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Change the way __hash__ is inherited; when __eq__ or __cmp__ is overridden
authorGuido van Rossum <guido@python.org>
Mon, 21 Aug 2006 23:36:26 +0000 (23:36 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 Aug 2006 23:36:26 +0000 (23:36 +0000)
commit389381564cfa936c8e50bc51dc53b55cba857652
tree7259a38e0d6c06e5519276336ed26a593166de1d
parent5431ee4a499e173c5638297de30a965ed2206c66
Change the way __hash__ is inherited; when __eq__ or __cmp__ is overridden
but __hash__ is not, set __hash__ explicitly to None (and tp_hash to NULL).
All unit tests pass now!
BROKEN
Include/object.h
Lib/test/mapping_tests.py
Lib/test/test_dict.py
Objects/object.c
Objects/typeobject.c