[issue21706] Add base for enumerations (Functional API)
Ethan Furman
report at bugs.python.org
Wed Jun 11 01:15:57 CEST 2014
Ethan Furman added the comment:
That is certainly nicer than the current idiom:
Animal = Enum('Animal', zip('ant bee cat dog'.split(), range(4)))
----------
assignee: -> ethan.furman
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21706>
_______________________________________
More information about the Python-bugs-list
mailing list