Re:PEP 435 Accepted – Adding an Enum type to the Python stan...
by shoyer on Friday May 10, 2013 @02:27PM
(#5687840)
There is an OrderedDict class in the collections module of standard library. Enums store their members in a special __members__ attribute, which is such an OrderedDict. See this section of the PEP: http://www.python.org/dev/peps/pep-0435/#duplicating-enum-me...
[ Parent
| on HN ]
Re:PEP 435 Accepted – Adding an Enum type to the Python stan...
by marmaduke on Friday May 10, 2013 @02:57PM
(#5688005)
You more or less ignored the contents of my comment w.r.t. execution model. I am well aware of OrderedDict, and I still do not understand how this behavior is possible unless Python 3 differs from 2 in the kind of dictionary used in code block executions.