Nick Coghlan added the comment:

I don't think that would be wise - there's currently other logic in _get_mixins 
that subclasses would then have to duplicate.

I was thinking more of an allow_subclass() API that subtypes could override to 
always return True. EnumMeta would then just factor the relevant piece of 
_get_mixins out into the default allow_subclass implementation.

----------

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

Reply via email to