[issue18989] reuse of enum names in class creation inconsistent

Eli Bendersky report at bugs.python.org
Fri Sep 13 15:42:30 CEST 2013


Eli Bendersky added the comment:

I agree with David. This is yet another case where we try to go against Python and make enum special, and I'm against this. Nothing prevents users from accidentally overriding their own members and methods in normal classes as well. This is trivially discoverable with tests. Let's please stop making enum more and more complex with all these needless type checks. We'll never get out of it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18989>
_______________________________________


More information about the Python-bugs-list mailing list