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.
C
Christian Heimes committed
05b32c1c796d6c80479756ae898f488eac5f4f71
Parent: 8ba1c7f
Committed by GitHub <noreply@github.com>
on 6/16/2022, 6:42:36 AM