[issue21706] Add base for enumerations (Functional API)
Ethan Furman
report at bugs.python.org
Wed Jun 11 01:34:22 CEST 2014
Ethan Furman added the comment:
Playing devil's advocate:
The issue is not so much the keystrokes saved as the improvement in reading and understanding what was intended. If you are happy with starting at 1 the idiom is easy to both write, read, and understand; but if you want some other starting number you have to uglify your code with parenthesis, .methods, and add an extra iterator which you have to manually re-sync if you later add another name...
I think that is the real issue -- not keystrokes.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21706>
_______________________________________
More information about the Python-bugs-list
mailing list