Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013年4月27日 14:59:38 -0700

On Sat, Apr 27, 2013 at 1:01 PM, Ethan Furman <[email protected]> wrote:
> It seems to me that the *most* common case will be a simple name mapping, in
> which case one can do:
>
> Planet = Enum._make('Planet', 'MERCURY VENUS EARTH')
>
> and be done with it.
That looks horrible.
--
--Guido van Rossum (python.org/~guido)
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to