[Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

Greg greg.ewing at canterbury.ac.nz
Fri Apr 26 05:19:32 CEST 2013


On 26/04/2013 3:06 p.m., Glenn Linderman wrote:
> So what I'm hearing is that enumerations need to be a language feature,
> rather than a module:
>
> Can't combine Enum and EnumItem
> Can't import into locals
>
> The compiler could do those things, though.

Maybe we've found a use case for the recently advertised
macro system?

("One, two, five..." runs for cover...)

-- 
Greg



More information about the Python-Dev mailing list