[issue17954] Support creation of extensible enums through metaclass subclassing

Ethan Furman report at bugs.python.org
Sun May 12 13:02:27 CEST 2013


Ethan Furman added the comment:

Make it simpler:

class EnumMeta():
    allow_subclass = False


class MyEnumMeta(EnumMeta):
    allow_subclass = True

----------

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


More information about the Python-bugs-list mailing list