Message150727
Stupid email interface again... here's the full text:
The hash-attack.patch solves the problem for the integer case
I posted earlier on and doesn't cause any problems with the
test suite.
>>> d = dict((x*(2**64 - 1), hash(x*(2**64 - 1))) for x in xrange(1, 100))
>>> d = dict((x*(2**64 - 1), hash(x*(2**64 - 1))) for x in xrange(1, 1000))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'too many hash collisions'
It also doesn't change the hashing or dict repr in existing
applications. |
|
Date |
User |
Action |
Args |
2012-01-06 12:56:49 | lemburg | set | recipients:
+ lemburg, gvanrossum, barry, georg.brandl, terry.reedy, jcea, pitrou, vstinner, christian.heimes, benjamin.peterson, eric.araujo, Arfrever, v+python, alex, dmalcolm, Mark.Shannon, Zhiping.Deng, Huzaifa.Sidhpurwala, PaulMcMillan |
2012-01-06 12:56:49 | lemburg | set | messageid: <1325854609.56.0.387311609534.issue13703@psf.upfronthosting.co.za> |
2012-01-06 12:56:48 | lemburg | link | issue13703 messages |
2012-01-06 12:56:48 | lemburg | create | |
|