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 Guy Gangemi, barry, eli.bendersky, ethan.furman, rhettinger
Date 2020-09-19.08:30:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600504217.37.0.565140457186.issue32218@roundup.psfhosted.org>
In-reply-to
Content
Problem:  What to do when the Flag has compound members?

    class Color(Flag):
        BLACK = 0
        RED = 1
        GREEN = 2
        BLUE = 4
        PURPLE = RED|BLUE
        WHITE = RED|GREEN|BLUE

I think the answer is: only return the single members.  So

  --> list(Color.WHITE)
  [Color.BLUE, Color.GREEN, Color.RED]
History
Date User Action Args
2020-09-19 08:30:17ethan.furmansetrecipients: + ethan.furman, barry, rhettinger, eli.bendersky, Guy Gangemi
2020-09-19 08:30:17ethan.furmansetmessageid: <1600504217.37.0.565140457186.issue32218@roundup.psfhosted.org>
2020-09-19 08:30:17ethan.furmanlinkissue32218 messages
2020-09-19 08:30:17ethan.furmancreate