[issue26988] Add AutoNumberedEnum to stdlib

STINNER Victor report at bugs.python.org
Wed Aug 17 10:24:12 EDT 2016


STINNER Victor added the comment:

> It's not just C that has enums where you can define a unique group of names and omit the values ...

Yes, Python 3.4 too: Animal = Enum('Animal', 'ant bee cat dog')

https://docs.python.org/dev/library/enum.html#functional-api

----------

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


More information about the Python-bugs-list mailing list