David Rebbe <ic3m...@gmail.com> added the comment:

Understandable and I do believe IntEnum should default as zero as its the 
default type most will choose when trying to mimic other languages.

C/C++ has the same problem where the value isn't suppose to matter but as soon 
as you go across the compiled / interpreted application (libraries and network 
communication) the value of the enum becomes important. 

I have corrected all my code to have a "fake" value of 0 instead of using 
enum.auto() as the first value, but it would be nice to not have to use that 
workaround. Maybe a new class CIntEnum would be acceptable?

----------

_______________________________________
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