[Python-ideas] PEP for enum library type?

Tim Delaney timothy.c.delaney at gmail.com
Wed Feb 13 00:09:05 CET 2013


On 13 February 2013 09:56, Guido van Rossum <guido at python.org> wrote:

> Frankly, enums are not that useful in small programs. For large
> programs or libraries, and especially for public APIs, the extra cost
> of defining the enum shouldn't count against them.
>
> Let's just import Barry's enums into the stdlib.


That's entirely your call. FWIW I probably won't use them, as they fail to
meet my needs for an enum, #1 being not having to specify their values in
any way if I don't want to. Once you get past 3 or 4 values, it's too easy
to miss or reuse a value.

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


More information about the Python-ideas mailing list