This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdemeyer
Recipients eric.smith, jdemeyer, mark.dickinson, rhettinger, sir-sigurd, tim.peters
Date 2018-09-24.10:39:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537785591.61.0.956365154283.issue34751@psf.upfronthosting.co.za>
In-reply-to
Content
> In the absence of a real analysis, the intuition is simply that "t ^= t << 7" will clear masses of leading sign bits when hashing "small" negative integers.

That's a clever solution. If you want to go that route, I would rather suggest t ^= t << 1 which is essentially the same fix but which has probably less collisions on the low-order bits.
History
Date User Action Args
2018-09-24 10:39:51jdemeyersetrecipients: + jdemeyer, tim.peters, rhettinger, mark.dickinson, eric.smith, sir-sigurd
2018-09-24 10:39:51jdemeyersetmessageid: <1537785591.61.0.956365154283.issue34751@psf.upfronthosting.co.za>
2018-09-24 10:39:51jdemeyerlinkissue34751 messages
2018-09-24 10:39:51jdemeyercreate