[Python-ideas] PEP for enum library type?

Yuval Greenfield ubershmekel at gmail.com
Wed Feb 13 18:33:00 CET 2013


On Wed, Feb 13, 2013 at 7:09 PM, Brett Cannon <brett at python.org> wrote:

> Or just a function idiom. We don't have to support the class-based
> definition style either.
>

Well, namedtuple has an enum for tuple indexes. I think we should be
consistent which entails:

Colors = collections.enum('RED GREEN BLUE')


Cheers,

Yuval
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130213/9070e52f/attachment.html>


More information about the Python-ideas mailing list