Message377426
I believe this is what Rahul means:
import enum
class Color(enum.Flag):
RED = enum.auto()
BLUE = enum.auto()
GREEN = enum.auto()
white = Color.RED | Color.BLUE | Color.GREEN
assert white.name is None
# Note, however that:
assert str(Color.RED | Color.BLUE | Color.GREEN) == "Color.GREEN|BLUE|RED" |
|
Date |
User |
Action |
Args |
2020-09-23 21:36:56 | iritkatriel | set | recipients:
+ iritkatriel, ethan.furman, fbidu, rahul-kumi |
2020-09-23 21:36:56 | iritkatriel | set | messageid: <1600897016.34.0.30891032903.issue40042@roundup.psfhosted.org> |
2020-09-23 21:36:56 | iritkatriel | link | issue40042 messages |
2020-09-23 21:36:56 | iritkatriel | create | |
|