[issue44993] enum.auto() starts with one instead of zero

David Rebbe report at bugs.python.org
Tue Aug 24 14:25:45 EDT 2021


David Rebbe <ic3man5 at gmail.com> added the comment:

Definition of equivalent
1: equal in force, amount, or value

Are you referring to memory space as what is actually stored in RAM? If so, that seems to be outside the scope here. I don't think anyone expected an interpreted language to have the same memory space as a compiled binary from C for example.

Concretely anything to do with Serialization, API (ctypes), network communication (non-serialization), etc will fail.

Regardless of the reasons above, 1 is never the intended default value of anything default initialized in any language I've ever come across.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44993>
_______________________________________


More information about the Python-bugs-list mailing list