[Python-ideas] PEP for enum library type?
Jonathan Slenders
jonathan at slenders.be
Tue Feb 12 23:29:38 CET 2013
2013/2/12 Stefan Krah <stefan at bytereef.org>
> 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.
I was just thinking the same. We don't like to have more syntax than
necessary, but we should also not introduce too much magic...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130212/9079cf18/attachment.html>
More information about the Python-ideas
mailing list