diff options
author | Christian Heimes <christian@python.org> | 2022-06-16 08:42:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 23:42:36 -0700 |
commit | 05b32c1c796d6c80479756ae898f488eac5f4f71 (patch) | |
tree | cfeebd93990074a5729b973806c802e047679b46 /Include/cpython/frameobject.h | |
parent | 8ba1c7f72010dedb80f0794c5f1dd1c97f81ec83 (diff) | |
download | cpython-git-05b32c1c796d6c80479756ae898f488eac5f4f71.tar.gz |
gh-93820: Fix copy() regression in enum.Flag (GH-93876)
GH-26658 introduced a regression in copy / pickle protocol for combined
`enum.Flag`s. `copy.copy(re.A | re.I)` would fail with
`AttributeError: ASCII|IGNORECASE`.
`enum.Flag` now has a `__reduce_ex__()` method that reduces flags by
combined value, not by combined name.
Diffstat (limited to 'Include/cpython/frameobject.h')
0 files changed, 0 insertions, 0 deletions