[issue17961] Use enum names as values in enum.Enum convenience API

Ethan Furman report at bugs.python.org
Sun May 12 14:34:06 CEST 2013


Ethan Furman added the comment:

In flufl.enum integers also made since as that was the default back-end data type.

Currently, the functional method allows a type declaration.  The behavior there could be tweaked such that no specification meant no value (a truly valueless enum!), type=int means ints starting from 1, type=str meant str values of names, any other value and you better had made your own enum derived class to support it.

----------

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


More information about the Python-bugs-list mailing list