[3.7] bpo-34621: backwards-compatible pickle UUID with is_safe=unknown by taleinat · Pull Request #14834 · python/cpython (original) (raw)
Our previous fix for UUID pickling backwards-compatibility has a bug, where SafeUUID.unknown
is set in the is_safe
field of the __getstate__
state, rather than is_safe
being omitted. This fixes that.
Note that this doesn't happen in 3.8+, where the implementation is different due to the change of UUID
to use slots.