A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-April/125509.html below:

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

[Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard libraryAntoine Pitrou solipsis at pitrou.net
Thu Apr 25 14:29:04 CEST 2013
Le Thu, 25 Apr 2013 05:21:50 -0700,
Eli Bendersky <eliben at gmail.com> a écrit :
> 
> 
> > or:
> >
> >     >>> Colors(1)
> >     <EnumValue: Colors.red [value=1]>
> >
> >
> This syntax was considered initially but then rejected because it's
> confusing, and there already exists a way to lookup by value
> (Colors[1]).

Well, it works in latest flufl.enum. Is there a difference between the
PEP and the implementation.

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4