Message175098
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... |
|
Date |
User |
Action |
Args |
2012-11-07 13:02:05 | arigo | set | recipients:
+ arigo, lemburg, mark.dickinson, vstinner, christian.heimes, benjamin.peterson, Arfrever, alex, dmalcolm, Giovanni.Bajo, PaulMcMillan, serhiy.storchaka, Vlado.Boza, koniiiik, camara |
2012-11-07 13:02:05 | arigo | set | messageid: <1352293325.28.0.761541391846.issue14621@psf.upfronthosting.co.za> |
2012-11-07 13:02:05 | arigo | link | issue14621 messages |
2012-11-07 13:02:05 | arigo | create | |
|