Message400210
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) |
|
Date |
User |
Action |
Args |
2021-08-24 14:19:43 | David Rebbe2 | set | recipients:
+ David Rebbe2 |
2021-08-24 14:19:43 | David Rebbe2 | set | messageid: <1629814783.31.0.585894105546.issue44993@roundup.psfhosted.org> |
2021-08-24 14:19:43 | David Rebbe2 | link | issue44993 messages |
2021-08-24 14:19:43 | David Rebbe2 | create | |
|