[Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library (original) (raw)

Philip Jenvey pjenvey at underboss.org
Wed May 1 00:51:44 CEST 2013


On Apr 27, 2013, at 6:09 PM, Guido van Rossum wrote:

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.

So does the convenience API outlined in the PEP, so this is just an alternative to that.

-- Philip Jenvey



More information about the Python-Dev mailing list