[Python-ideas] PEP for enum library type?

Stefan Krah stefan at bytereef.org
Tue Feb 12 22:46:55 CET 2013


Guido van Rossum <guido at python.org> wrote:
> Please. Anything *except*
> 
> class Color(Enum):
>   RED, BLUE, GREEN
> 
> And not this eiter:
> 
> class Color(Enum):
>   RED
>   BLUE
>   GREEN

Is a new enum keyword still a possibility? To me that seems to be the
cleanest way.


Stefan Krah





More information about the Python-ideas mailing list