Bug#975915: python3-debian: Deb822 objects cannot be serialized with pickle module

2020-11-26 Thread Ansgar
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

Bug#975915: python3-debian: Deb822 objects cannot be serialized with pickle module

2020-11-26 Thread 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