Author iritkatriel
Recipients ethan.furman, fbidu, iritkatriel, rahul-kumi
Date 2020-09-23.21:36:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600897016.34.0.30891032903.issue40042@roundup.psfhosted.org>
In-reply-to
Content
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"
History
Date User Action Args
2020-09-23 21:36:56iritkatrielsetrecipients: + iritkatriel, ethan.furman, fbidu, rahul-kumi
2020-09-23 21:36:56iritkatrielsetmessageid: <1600897016.34.0.30891032903.issue40042@roundup.psfhosted.org>
2020-09-23 21:36:56iritkatriellinkissue40042 messages
2020-09-23 21:36:56iritkatrielcreate