diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-06-10 23:37:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 23:37:27 (GMT) |
commit | b613132861839b6d05b67138842b579e1af29f9c (patch) | |
tree | 383e8ffae45f7cd31af1196f4dea0fed693a6aea /Objects/codeobject.c | |
parent | 3e137426de3e6a37622b2ca61207b1323fdea11f (diff) | |
download | cpython-b613132861839b6d05b67138842b579e1af29f9c.zip cpython-b613132861839b6d05b67138842b579e1af29f9c.tar.gz cpython-b613132861839b6d05b67138842b579e1af29f9c.tar.bz2 |
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 62f1d2b3d7dda99598d053e10b785c463fdcf591)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Diffstat (limited to 'Objects/codeobject.c')
0 files changed, 0 insertions, 0 deletions