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

Antoine Pitrou report at bugs.python.org
Mon May 13 16:06:28 CEST 2013


Antoine Pitrou added the comment:

> >I agree with Nick here, there's no reason to auto-number constants
> >in
> >Python. This is not C :-)
> 
> Why should they be strings?   Why not object()?

Because strings are readable, I'd say.

----------

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


More information about the Python-bugs-list mailing list