Files
cpython/Include
Fred Drake 13634cf7a4 This patch addresses two main issues: (1) There exist some non-fatal
errors in some of the hash algorithms. For exmaple, in float_hash and
complex_hash a certain part of the value is not included in the hash
calculation. See Tim's, Guido's, and my discussion of this on
python-dev in May under the title "fix float_hash and complex_hash for
64-bit *nix"

(2) The hash algorithms that use pointers (e.g. func_hash, code_hash)
are universally not correct on Win64 (they assume that sizeof(long) ==
sizeof(void*))

As well, this patch significantly cleans up the hash code. It adds the
two function _Py_HashDouble and _PyHash_VoidPtr that the various
hashing routine are changed to use.

These help maintain the hash function invariant: (a==b) =>
(hash(a)==hash(b))) I have added Lib/test/test_hash.py and
Lib/test/output/test_hash to test this for some cases.
2000-06-29 19:17:04 +00:00
..
2000-06-18 18:43:14 +00:00
1996-10-25 14:44:06 +00:00
2000-05-08 14:04:54 +00:00
2000-05-09 19:51:10 +00:00
1994-01-02 00:11:39 +00:00
1997-04-02 05:24:08 +00:00
1999-01-04 16:39:38 +00:00
1999-02-15 14:43:11 +00:00
1996-10-25 14:44:06 +00:00
2000-05-01 17:55:15 +00:00
2000-05-28 20:29:48 +00:00
1999-03-24 19:02:09 +00:00