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 David Rebbe2
Recipients David Rebbe2
Date 2021-08-24.14:19:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629814783.31.0.585894105546.issue44993@roundup.psfhosted.org>
In-reply-to
Content
enum.auto() By default, the initial value starts at 1. Per the documentation here: https://docs.python.org/3/library/enum.html#enum.auto

This doesn't really follow expected behavior in majority of programming languages nor python. Most will expect starting value to be zero. I personally skipped over this as I've never seen an enum start at 1 in any language before. Excuse my ignorance if this is more common place then I realize.

I propose an optional argument to the class to allow different starting values: enum.auto(0)
History
Date User Action Args
2021-08-24 14:19:43David Rebbe2setrecipients: + David Rebbe2
2021-08-24 14:19:43David Rebbe2setmessageid: <1629814783.31.0.585894105546.issue44993@roundup.psfhosted.org>
2021-08-24 14:19:43David Rebbe2linkissue44993 messages
2021-08-24 14:19:43David Rebbe2create