And of course I forgot something:
Alternatively one could ensure the hash gets updated when unpickling by
implementing `__setstate__` (or other means), but that seems more work
and I'm not sure it is so useful to store the precomputed hash anyway.
Ansgar
Package: python3-debian
Version: 0.1.38
Severity: normal
Tags: patch
Deb822 modules cannot properly be serialized by the pickle module.
It turns out the dict uses _CaseInsensitiveString which stores a
pre-computed hash value of a `str`. However Python randomizes hashes,
i.e., one will get a diffe
2 matches
Mail list logo