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/125557.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 libraryEthan Furman ethan at stoneleaf.us
Fri Apr 26 00:26:43 CEST 2013
On 04/25/2013 03:11 PM, Barry Warsaw wrote:
> 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})

Whatever random order {}.keys() returns -- and python programmers should be expecting that (or at least smack themselves 
for forgetting it ;)

--
~Ethan~
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