[Python-ideas] PEP for enum library type?

Tim Delaney timothy.c.delaney at gmail.com
Tue Feb 12 23:32:25 CET 2013


On 13 February 2013 09:29, Jonathan Slenders <jonathan at slenders.be> wrote:

> 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...
>

That's my conclusion as well. To get a nice* enum with guaranteed semantics
and no edge cases, I think it needs parser support.

* for my definition of "nice".

Tim Delaney
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130213/beb58f56/attachment.html>


More information about the Python-ideas mailing list