[issue34751] Hash collisions for tuples
Tim Peters
report at bugs.python.org
Fri Sep 21 02:10:38 EDT 2018
Tim Peters <tim at python.org> added the comment:
You said it yourself: "It's not hard to come up with ...". That's not what "real life" means. Here:
>>> len(set(hash(1 << i) for i in range(100_000)))
61
Wow! Only 61 hash codes across 100 thousand distinct integers?!
Yup - and I don't care. I contrived the case, just like you apparently contrived yours.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34751>
_______________________________________
More information about the Python-bugs-list
mailing list