Message400211
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. |
|
Date |
User |
Action |
Args |
2021-08-24 14:29:49 | veky | set | recipients:
+ veky, David Rebbe2 |
2021-08-24 14:29:49 | veky | set | messageid: <1629815389.75.0.425830808791.issue44993@roundup.psfhosted.org> |
2021-08-24 14:29:49 | veky | link | issue44993 messages |
2021-08-24 14:29:49 | veky | create | |
|