]> granicus.if.org Git - python/commit
Rich comparisons fallout: instance_hash() should check for both
authorGuido van Rossum <guido@python.org>
Thu, 18 Jan 2001 23:46:31 +0000 (23:46 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 18 Jan 2001 23:46:31 +0000 (23:46 +0000)
commit65e8bd7fd5af5de8e6354832d5c00e7cc9dff7ab
treec53ffaf4c3ab69635351466bb1847a6e024e63da
parent0c6614c78904b6ad0a92033a3224b95d182f1b17
Rich comparisons fallout: instance_hash() should check for both
__cmp__ and __eq__ absent before deciding to do a quickie
based on the object address.  (Tim Peters discovered this.)
Objects/classobject.c