Message248378
There's a slightly odd edge case which can be summarized as follows:
====================
from enum import Enum
class Bool(Enum):
Yep = True
Nope = False
for value in Bool:
print('%18r is %r' % (value, bool(value)))
====================
output:
====================
<Bool.Yep: True> is True
<Bool.Nope: False> is True
====================
This isn't really a big deal, but can be made better with the attached patch. I can't think of any odd consequences this might cause, but others may know better. |
|
Date |
User |
Action |
Args |
2015-08-11 00:09:32 | novas0x2a | set | recipients:
+ novas0x2a |
2015-08-11 00:09:32 | novas0x2a | set | messageid: <1439251772.85.0.609570031312.issue24840@psf.upfronthosting.co.za> |
2015-08-11 00:09:32 | novas0x2a | link | issue24840 messages |
2015-08-11 00:09:32 | novas0x2a | create | |
|