[issue23591] enum: Add Flags and IntFlags
Vedran Čačić
report at bugs.python.org
Sat Sep 3 12:52:18 EDT 2016
Vedran Čačić added the comment:
Hmm... so if I read you right:
1) IntFlags is not simply the meet of int and Flags (like IntEnum is the meet of int and Enum, https://docs.python.org/3.5/library/enum.html#others)? It seems a very different class.
2) (more important) If I give names to 1, 3, 4, and 6, you're in fact saying that MyFlags(7) == MyFlags(5) (since 2 is never set)? Seems like succumbing to temptation to guess. ;-/ But maybe it's not bad in this case, since there is really no ambiguity.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23591>
_______________________________________
More information about the Python-bugs-list
mailing list