[issue13703] Hash collision security issue

STINNER Victor report at bugs.python.org
Tue Jan 3 22:20:59 CET 2012


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> Unless there's evidence of performance regressions
> or backward incompatibilities, I agree.

If hash() is modified, str(dict) and str(set) will change for example. It may break doctests. Can we consider that the application should not rely (indirectly) on hash and so fix (for example) their doctests? Or is it a backward incompatibility?

hash() was already modified in major Python versions.

For this specific issue, I consider that security is more important than str(dict).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13703>
_______________________________________


More information about the Python-bugs-list mailing list