Skip to content

[3.10] bpo-44342: [Enum] changed pickling from by-value to by-name (GH-26658) - #26660

Merged
ethanfurman merged 1 commit into
python:3.10from
miss-islington:backport-62f1d2b-3.10
Jun 10, 2021
Merged

[3.10] bpo-44342: [Enum] changed pickling from by-value to by-name (GH-26658)#26660
ethanfurman merged 1 commit into
python:3.10from
miss-islington:backport-62f1d2b-3.10

Conversation

@miss-islington

@miss-islingtonmiss-islington commented Jun 10, 2021

Copy link
Copy Markdown
Contributor

by-value lookups could fail on complex enums, necessitating a check for
reduce and possibly sabotaging the final enum;

by-name lookups should never fail, and sabotaging is no longer necessary
for class-based enum creation.
(cherry picked from commit 62f1d2b)

Co-authored-by: Ethan Furman ethan@stoneleaf.us

https://bugs.python.org/issue44342

…-26658)
by-value lookups could fail on complex enums, necessitating a check for
__reduce__ and possibly sabotaging the final enum;
by-name lookups should never fail, and sabotaging is no longer necessary
for class-based enum creation.
(cherry picked from commit 62f1d2b)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
@miss-islington

Copy link
Copy Markdown
ContributorAuthor

@ethanfurman: Status check is done, and it's a success ✅ .

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@miss-islington@ethanfurman@the-knights-who-say-ni@bedevere-bot