[issue23591] Add Flags and IntFlags
Ethan Furman
report at bugs.python.org
Wed Aug 10 00:55:05 EDT 2016
Ethan Furman added the comment:
The idea behind Flags is that they are easily combined enums. The advantage they have over IntFlags is they do not interact with integers, and they cannot have non-existing values used. By keeping the same API as IntFlags we only have two APIs instead of three (Enum and Flag instead of Enum, EnumSet, and IntFlag), and also make life easier for changing code from one to the other (Flag <-> IntFlag).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23591>
_______________________________________
More information about the Python-bugs-list
mailing list