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

Barry Warsaw barry at python.org
Fri Apr 26 00:11:01 CEST 2013


On Apr 21, 2013, at 09:12 PM, R. David Murray wrote:

>Regardless of the specific values involved, it is pretty much guaranteed
>that if anything other than definition order is used we *will* get bug
>reports/enhancement requests to fix it, on a regular basis.  We can choose
>to live with that, but we should admit that it will will happen :)

What's the definition order here?

    >>> Methods = Enum('Methods', {'set': 8, 'get': 15, 'delete': 16})

-Barry


More information about the Python-Dev mailing list