[issue29594] implementation of __or__ in enum.auto
Ethan Furman
report at bugs.python.org
Wed Feb 22 20:16:16 EST 2017
Ethan Furman added the comment:
@Julian: Giving flag combinations their own name can be useful. For example, instead of seeing Color.GREEN|RED one can see Color.YELLOW .
@Marc: I'm not convinced this is a needed change as it doesn't seem to be a common method, nor one that cannot be easily implemented independently (perhaps as a recipe in the docs).
Are you aware of other enumerations that take this approach?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29594>
_______________________________________
More information about the Python-bugs-list
mailing list