Message119265
I've attached a patch that fixes hashing for numerical types, sys.hash_info is now correct, fixes typeobject.c/wrap_hashfunc and tupleobject.c/tuplehash to use Py_ssize_t instead of long, and uses Py_ssize_t instead of Py_hash_t.
I think it is clearer to use Py_ssize_t instead of Py_hash_t. I found two occurances where PyLong_FromLong needed to be replaced by PyLong_FromSsize_t and I think bugs like that would be easier to catch if Py_ssize_t is used. |
|
Date |
User |
Action |
Args |
2010-10-21 07:10:19 | casevh | set | recipients:
+ casevh, lemburg, tim.peters, loewis, skip.montanaro, georg.brandl, rhettinger, jimjjewett, mark.dickinson, belopolsky, pitrou, ked-tao, benjamin.peterson |
2010-10-21 07:10:18 | casevh | set | messageid: <1287645018.82.0.392760191322.issue9778@psf.upfronthosting.co.za> |
2010-10-21 07:10:16 | casevh | link | issue9778 messages |
2010-10-21 07:10:16 | casevh | create | |
|