This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients ethan.furman
Date 2022-01-23.00:37:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642898228.67.0.336074003438.issue46477@roundup.psfhosted.org>
In-reply-to
Content
Creating one's own int Flag type doesn't work properly with regards to the bitwise operators:

    class MyIntFlag(int, Flag):
        ONE = 1
        TWO = 2
        FOUR = 4

    MyIntFlag.ONE | MyIntFlag.TWO
    # <MyIntFlag.ONE|TWO: 3>

    MyIntFlag.ONE | 2
    # 3
History
Date User Action Args
2022-01-23 00:37:08ethan.furmansetrecipients: + ethan.furman
2022-01-23 00:37:08ethan.furmansetmessageid: <1642898228.67.0.336074003438.issue46477@roundup.psfhosted.org>
2022-01-23 00:37:08ethan.furmanlinkissue46477 messages
2022-01-23 00:37:08ethan.furmancreate