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 veky
Recipients David Rebbe2, veky
Date 2021-08-24.14:29:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629815389.75.0.425830808791.issue44993@roundup.psfhosted.org>
In-reply-to
Content
For IntEnum, maybe. But for Enum, the whole point of auto() is that the values don't really matter. The rationale was that with IntEnum, truth testing (which is often used in Python to realize Optional) would distinguish None, and then all true Enums would actually be true in the boolean sense.

In a way, most real examples of enums already have some "fake" value which they map to 0. In Python, you idiomatically use None for that.
History
Date User Action Args
2021-08-24 14:29:49vekysetrecipients: + veky, David Rebbe2
2021-08-24 14:29:49vekysetmessageid: <1629815389.75.0.425830808791.issue44993@roundup.psfhosted.org>
2021-08-24 14:29:49vekylinkissue44993 messages
2021-08-24 14:29:49vekycreate