Ram Rachum added the comment:

> Enum members are also defined to be unordered, so their serial number is 
> meaningless.

Are you sure? The documentation says "Enumerations support iteration, in 
definition order" and shows how `tuple(MyEnum)` outputs the values in 
definition order.


> Likewise, member.number is also a misnomer in this case:

I don't understand why it's a misnomer in the case you showed.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22505>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to