FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468) by miss-islington · Pull Request #106620 · python/cpython · GitHub

/ cpython Public

[3.12] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468) - #106620

Merged
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-95b7426-3.12
Jul 11, 2023
Merged

[3.12] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468)#106620
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-95b7426-3.12

Conversation

miss-islington commented Jul 11, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

For example:

class Flag(enum.Flag):
    A = 0x01
    B = 0x02
    MASK = 0xff

~Flag.MASK is Flag(0)

(cherry picked from commit 95b7426)

Co-authored-by: Ethan Furman ethan@stoneleaf.us

…ist (pythonGH-106468)

For example:

    class Flag(enum.Flag):
        A = 0x01
        B = 0x02
        MASK = 0xff

    ~Flag.MASK is Flag(0)
(cherry picked from commit 95b7426)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL