diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-11 12:09:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 12:09:41 (GMT) |
commit | 6968f9e4d3593610b60c1140f04de275ff40cd41 (patch) | |
tree | e20331a7445a561aed8f1e89c30efc859cb669bc /Programs/_bootstrap_python.c | |
parent | 2eb9fe92b4180af0a9e51b1232df5a3d7d93788f (diff) | |
download | cpython-6968f9e4d3593610b60c1140f04de275ff40cd41.zip cpython-6968f9e4d3593610b60c1140f04de275ff40cd41.tar.gz cpython-6968f9e4d3593610b60c1140f04de275ff40cd41.tar.bz2 |
[3.12] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468) (#106620)
gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468)
For example:
class Flag(enum.Flag):
A = 0x01
B = 0x02
MASK = 0xff
~Flag.MASK is Flag(0)
(cherry picked from commit 95b7426f45edb570869a5513c142f29ed9f851a1)
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Diffstat (limited to 'Programs/_bootstrap_python.c')
0 files changed, 0 insertions, 0 deletions