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/125653.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 libraryGuido van Rossum guido at python.org
Sun Apr 28 03:09:02 CEST 2013
On Sat, Apr 27, 2013 at 5:10 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> class Planet(
>              Enum,
>              names='''
>                    MERCURY
>                    VENUS
>                    EARTH
>                    MARS
>                    SATURN
>                    JUPITER
>                    URANUS
>                    PLUTO
>                    ''',
>               ):
>     '''Planets of the Solar System'''
>
> Not sure I like that.  Ah well.

The problem with this and similar proposals is that it puts things
inside string quotes that belong outside them.

--
--Guido van Rossum (python.org/~guido)
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