Message274311
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. |
|
Date |
User |
Action |
Args |
2016-09-03 16:52:18 | veky | set | recipients:
+ veky, barry, rhettinger, vstinner, ezio.melotti, r.david.murray, eli.bendersky, ethan.furman, python-dev, martin.panter, serhiy.storchaka |
2016-09-03 16:52:18 | veky | set | messageid: <1472921538.81.0.262487627575.issue23591@psf.upfronthosting.co.za> |
2016-09-03 16:52:18 | veky | link | issue23591 messages |
2016-09-03 16:52:18 | veky | create | |
|