Skip to content

[3.7] bpo-34621: backwards-compatible pickle UUID with is_safe=unknown#14834

Merged
taleinat merged 2 commits into
python:3.7from
taleinat:bpo-34621/another-fix-for-uuid-pickling
Aug 4, 2019
Merged

[3.7] bpo-34621: backwards-compatible pickle UUID with is_safe=unknown#14834
taleinat merged 2 commits into
python:3.7from
taleinat:bpo-34621/another-fix-for-uuid-pickling

Conversation

@taleinat

@taleinat taleinat commented Jul 18, 2019

Copy link
Copy Markdown
Contributor

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.

https://bugs.python.org/issue34621

@taleinat taleinat merged commit a2ea944 into python:3.7 Aug 4, 2019
@taleinat taleinat deleted the bpo-34621/another-fix-for-uuid-pickling branch August 4, 2019 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants