Author arigo
Recipients Arfrever, Giovanni.Bajo, PaulMcMillan, Vlado.Boza, alex, arigo, benjamin.peterson, camara, christian.heimes, dmalcolm, haypo, koniiiik, lemburg, mark.dickinson, serhiy.storchaka
Date 2012-11-07.13:02:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352293325.28.0.761541391846.issue14621@psf.upfronthosting.co.za>
In-reply-to
Content
Wrong, sorry.  On a 32-bit Python 2.7, "(2**32-1)*n" has the same hash -2, for any value of n.

Of course if you build a dict containing thousands of such integers as keys, then right now you get unexpectedly bad performance.  I wonder if I should open another bug report about that --- the hash of longs should be slightly more random-looking...
History
Date User Action Args
2012-11-07 13:02:05arigosetrecipients: + arigo, lemburg, mark.dickinson, haypo, christian.heimes, benjamin.peterson, Arfrever, alex, dmalcolm, Giovanni.Bajo, PaulMcMillan, serhiy.storchaka, Vlado.Boza, koniiiik, camara
2012-11-07 13:02:05arigosetmessageid: <1352293325.28.0.761541391846.issue14621@psf.upfronthosting.co.za>
2012-11-07 13:02:05arigolinkissue14621 messages
2012-11-07 13:02:05arigocreate