]> granicus.if.org Git - python/commit
Patch #1549 by Thomas Herve.
authorGuido van Rossum <guido@python.org>
Wed, 19 Dec 2007 22:51:13 +0000 (22:51 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 19 Dec 2007 22:51:13 +0000 (22:51 +0000)
commit0b7b6fdff3b5bd7974c80a891598aa81ed634e61
treecdfaa22a883c513a81ff477342eee52df8f6c06b
parent70fcfd03bcedb920efe84f829ed354ea0a0b3d3f
Patch #1549 by Thomas Herve.
This changes the rules for when __hash__ is inherited slightly,
by allowing it to be inherited when one or more of __lt__, __le__,
__gt__, __ge__ are overridden, as long as __eq__ and __ne__ aren't.
Lib/test/test_richcmp.py
Objects/typeobject.c