[Python-ideas] constant/enum type in stdlib
Stefan Behnel
stefan_ml at behnel.de
Wed Jan 30 16:25:36 CET 2013
Eli Bendersky, 30.01.2013 06:26:
> enum color:
> RED, WHITE, BLUE
>
> Would adding a new "enum" keyword in Python 3.4 *really* meet that much
> resistance? ISTM built-in, standard, enums have been on the wishlist of
> Python developers for a long time.
Special cases aren't special enough to break the rules (or even existing
code!).
Stefan
More information about the Python-ideas
mailing list