Vedran Čačić <ved...@gmail.com> added the comment:

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.

----------
nosy: +veky

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44993>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to