]> granicus.if.org Git - python/commit
Issue #8188: Introduce a new scheme for computing hashes of numbers
authorMark Dickinson <dickinsm@gmail.com>
Sun, 23 May 2010 13:33:13 +0000 (13:33 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 23 May 2010 13:33:13 +0000 (13:33 +0000)
commitdc787d2055a7b562b64ca91b8f1af6d49fa39f1c
treef6a3868e8134c25c662868f19306bfea76b0ab45
parent03721133a68814696e3eee75b1eb09f5016ff078
Issue #8188: Introduce a new scheme for computing hashes of numbers
(instances of int, float, complex, decimal.Decimal and
fractions.Fraction) that makes it easy to maintain the invariant that
hash(x) == hash(y) whenever x and y have equal value.
14 files changed:
Doc/library/stdtypes.rst
Doc/library/sys.rst
Include/pyport.h
Lib/decimal.py
Lib/fractions.py
Lib/test/test_float.py
Lib/test/test_numeric_tower.py [new file with mode: 0644]
Lib/test/test_sys.py
Misc/NEWS
Objects/complexobject.c
Objects/longobject.c
Objects/object.c
Objects/typeobject.c
Python/sysmodule.c