Message 118994 - Python tracker (original) (raw)

The patch does not address that "unsigned long" is still used to calculate the hash values. This breaks numeric hashing and leads to incorrect values.

Python 3.2a3+ (py3k, Oct 17 2010, 19:03:38) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import sys sys.hash_info sys.hash_info(width=64, modulus=-1, inf=314159, nan=0, imag=1000003)

Would "size_t" be the appropriate type to use?