This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author novas0x2a
Recipients novas0x2a
Date 2015-08-11.00:09:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439251772.85.0.609570031312.issue24840@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-08-11 00:09:32novas0x2asetrecipients: + novas0x2a
2015-08-11 00:09:32novas0x2asetmessageid: <1439251772.85.0.609570031312.issue24840@psf.upfronthosting.co.za>
2015-08-11 00:09:32novas0x2alinkissue24840 messages
2015-08-11 00:09:32novas0x2acreate