[issue34751] Hash collisions for tuples

Jeroen Demeyer report at bugs.python.org
Fri Sep 21 02:18:11 EDT 2018


Jeroen Demeyer <J.Demeyer at UGent.be> added the comment:

For the record: my collision is not contrived. It came up in actual code where I was hashing some custom class using tuples and found an unexpected high number of collisions, which I eventually traced back to the collision I reported here.

By the way, I think the worst real-life hash collision is

>>> hash(-1) == hash(-2)
True

----------
resolution: rejected -> 
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34751>
_______________________________________


More information about the Python-bugs-list mailing list