[issue5186] Reduce hash collisions for objects with no __hash__ method
Antoine Pitrou
report at bugs.python.org
Wed Feb 11 13:18:52 CET 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
Le mercredi 11 février 2009 à 03:31 +0000, Adam Olsen a écrit :
>
> .. although, if I replace object() with list() I get best results with a
> shift of 6 bits. Replacing it with dict() is best with 8 bits.
But list() and dict() don't use id() for hash.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5186>
_______________________________________
More information about the Python-bugs-list
mailing list