Author casevh
Recipients belopolsky, benjamin.peterson, casevh, georg.brandl, jimjjewett, ked-tao, lemburg, loewis, mark.dickinson, pitrou, rhettinger, skip.montanaro, tim.peters
Date 2010-10-21.07:10:06
SpamBayes Score 0.000205765
Marked as misclassified No
Message-id <1287645018.82.0.392760191322.issue9778@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-10-21 07:10:19casevhsetrecipients: + casevh, lemburg, tim.peters, loewis, skip.montanaro, georg.brandl, rhettinger, jimjjewett, mark.dickinson, belopolsky, pitrou, ked-tao, benjamin.peterson
2010-10-21 07:10:18casevhsetmessageid: <1287645018.82.0.392760191322.issue9778@psf.upfronthosting.co.za>
2010-10-21 07:10:16casevhlinkissue9778 messages
2010-10-21 07:10:16casevhcreate