Skip to content
Snippets Groups Projects
Unverified Commit b6131328 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

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


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 62f1d2b3)

Co-authored-by: default avatarEthan Furman <ethan@stoneleaf.us>

Co-authored-by: default avatarEthan Furman <ethan@stoneleaf.us>
parent 3e137426
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment