Message377152
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] |
|
Date |
User |
Action |
Args |
2020-09-19 08:30:17 | ethan.furman | set | recipients:
+ ethan.furman, barry, rhettinger, eli.bendersky, Guy Gangemi |
2020-09-19 08:30:17 | ethan.furman | set | messageid: <1600504217.37.0.565140457186.issue32218@roundup.psfhosted.org> |
2020-09-19 08:30:17 | ethan.furman | link | issue32218 messages |
2020-09-19 08:30:17 | ethan.furman | create | |
|