[issue19224] Make hash(None) consistent among processes

Antoine Pitrou report at bugs.python.org
Fri Oct 11 11:09:36 CEST 2013


Antoine Pitrou added the comment:

Is this something we actually want to support officially? Many other types have non-repeatable hashes, e.g.:

$ PYTHONHASHSEED=1 python3 -c "print(hash((lambda: 0)))"
8771754605115
$ PYTHONHASHSEED=1 python3 -c "print(hash((lambda: 0)))"
8791504743739
$ PYTHONHASHSEED=1 python3 -c "print(hash((lambda: 0)))"
8788491320379
$ PYTHONHASHSEED=1 python3 -c "print(hash((lambda: 0)))"
8792628055611

----------
nosy: +pitrou, tim.peters

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


More information about the Python-bugs-list mailing list