]> granicus.if.org Git - python/commit
Classes that override __eq__ also need to define __hash__.
authorRaymond Hettinger <python@rcn.com>
Mon, 5 Apr 2010 18:53:43 +0000 (18:53 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 5 Apr 2010 18:53:43 +0000 (18:53 +0000)
commite1d665a90e4a20a60c0c9904417160ea3c7660b7
treeb70e4a64cd4a6a5ec6023fbe35069b4eb5af37fc
parent5e0c2748fb2e16b3b0f33f0bb55f1aaa1272f887
Classes that override __eq__ also need to define __hash__.
Lib/functools.py
Lib/test/test_functools.py