Nick Coghlan added the comment:
I just wanted to note that there's a trivial way to prevent accidental aliases
inline or in your test suite if you don't intend them:
class MyEnum(Enum):
....
assert len(MyEnum) == len(MyEnum.__members__)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17959>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com