[New-bugs-announce] [issue17961] Use enum names as values in enum.Enum convenience API
Nick Coghlan
report at bugs.python.org
Sun May 12 12:57:02 CEST 2013
New submission from Nick Coghlan:
I encountered an interesting suggestion [1] regarding the enum.Enum convenience API: use the member names as their values, rather than the current integers starting from one.
Since we're now using definition order rather than value order for iteration, this suggestion makes a lot of sense to me.
(again, posting this as something to consider after the accepted PEP is incorporated)
[1] http://www.acooke.org/cute/Pythonssad0.html
----------
messages: 189013
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Use enum names as values in enum.Enum convenience API
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17961>
_______________________________________
More information about the New-bugs-announce
mailing list