Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jun 10, 2021

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 10, 2021

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
Contributor Author

@miss-islington miss-islington commented Jun 10, 2021

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

@ethanfurman ethanfurman merged commit b613132 into python:3.10 Jun 10, 2021
14 checks passed
@miss-islington miss-islington deleted the backport-62f1d2b-3.10 branch Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants