[issue26988] Add AutoNumberedEnum to stdlib

John Hagen report at bugs.python.org
Mon Jul 11 18:47:23 EDT 2016


John Hagen added the comment:

>class BaseZeroEnum(Enum, start=0):
>   "initial integer is 0"
>   ...

I also think this looks better.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26988>
_______________________________________


More information about the Python-bugs-list mailing list