[Python-ideas] Enums

Raymond Hettinger raymond.hettinger at gmail.com
Fri Jul 29 01:58:42 CEST 2011


On Jul 28, 2011, at 4:42 PM, Michael Foord wrote:

> 
> Why not Colors.inject(__name__)?

Because enums aren't import enough to warrant introducing little atrocities into the language.


Raymond


P.S.  I used the term "language" instead of stdlib because I expect
enums to be like decorators and context managers in that they
will be used almost everywhere -- you won't be able to ignore them.
Effectively, they will become a core language feature.


More information about the Python-ideas mailing list