Message174964
Benjamin: oups, sorry. I don't remember setting the "easy" keyword, my mistake.
Fwiw I'm +1 on Marc-Andre's solution. Make it a tunable setting, e.g. with sys.setcollisionlimit(). Defaults to sys.maxint on existing Pythons and some smaller value (70?) on new Pythons. It has the same benefits as the recursion limit: it's theoretically bad, but most of the time very useful.
It would also crash on bad usages of custom __hash__() methods: e.g. if you put a lot of keys in a dict, all with a custom __hash__() that returns 42. I imagine that it can be considered a good thing to raise in this case rather than silently degrade performance forever. |
|
Date |
User |
Action |
Args |
2012-11-06 14:10:28 | arigo | set | recipients:
+ arigo, lemburg, vstinner, christian.heimes, benjamin.peterson, Arfrever, dmalcolm, PaulMcMillan, serhiy.storchaka, Vlado.Boza, koniiiik |
2012-11-06 14:10:27 | arigo | set | messageid: <1352211027.96.0.74785132029.issue14621@psf.upfronthosting.co.za> |
2012-11-06 14:10:27 | arigo | link | issue14621 messages |
2012-11-06 14:10:26 | arigo | create | |
|