This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients barry, eli.bendersky, ethan.furman
Date 2016-09-09.18:26:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473445598.15.0.0178037460772.issue28048@psf.upfronthosting.co.za>
In-reply-to
Content
With the landing of ordered class namespaces the build order for Enum needs to be redone to at least keep the user-specified pieces' relative order intact:

>>> from enum import Enum
>>> class Color(Enum):
...   red = 1
...   blue = 2
...   green = 3
...   def primary(self):
...     return True
... 
>>> Color.__dict__.keys()
dict_keys(['_generate_next_value_', '__module__', 'primary', '__doc__', '_member_names_', '_member_map_', '_member_type_', '_value2member_map_', 'red', 'blue', 'green', '__new__'])
History
Date User Action Args
2016-09-09 18:26:38ethan.furmansetrecipients: + ethan.furman, barry, eli.bendersky
2016-09-09 18:26:38ethan.furmansetmessageid: <1473445598.15.0.0178037460772.issue28048@psf.upfronthosting.co.za>
2016-09-09 18:26:38ethan.furmanlinkissue28048 messages
2016-09-09 18:26:38ethan.furmancreate