Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist#106468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
For example: class Flag(enum.Flag): A = 0x01 B = 0x02 MASK = 0xff ~Flag.MASK is Flag(0)
That last commit should say |
Thanks@ethanfurman for the PR, and@ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
…ist (pythonGH-106468)For example: class Flag(enum.Flag): A = 0x01 B = 0x02 MASK = 0xff ~Flag.MASK is Flag(0)(cherry picked from commit95b7426)Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
bedevere-bot commentedJul 11, 2023
GH-106620 is a backport of this pull request to the3.12 branch. |
…ist (pythonGH-106468)For example: class Flag(enum.Flag): A = 0x01 B = 0x02 MASK = 0xff ~Flag.MASK is Flag(0)(cherry picked from commit95b7426)Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
bedevere-bot commentedJul 11, 2023
GH-106621 is a backport of this pull request to the3.11 branch. |
Uh oh!
There was an error while loading.Please reload this page.
For example:
This restores 3.10 behavior: