ethan at stoneleaf.us
Tue Jul 30 20:38:30 CEST 2013
On 07/30/2013 11:18 AM, Bas van der Wulp wrote:
> Using the enum34 0.9.13 package from PyPi in Python 2.7.3, the examples for OrderedEnum seem to be broken.
Thanks for catching that, I'll get it fixed asap.
> Also, in the example in the Python 3.4 library documentation (section 8.17.2) has the __ordered__ attribute removed
> (presumably because, in contrast to Python 2.x, Python 3 will respect the order of attribute definition).
Correct. In 3.4 __ordered__ never came into being as it was not necessary. I added that purely so that 2.x could be
ordered if desired.
More information about the Python-list