[issue41517] Able to subclass enum with members by using multiple inheritance
Steven D'Aprano
report at bugs.python.org
Mon Aug 10 19:42:29 EDT 2020
Steven D'Aprano <steve+python at pearwood.info> added the comment:
The documentation says:
"Allowing subclassing of enums that define members would lead to a violation of some important invariants of types and instances."
but it isn't clear what those invariants are, or why it is more of a problem for enums than any other subclassing situation. Could the docs be updated to explain why it is prohibited?
----------
nosy: +steven.daprano
title: Enum multiple inheritance loophole -> Able to subclass enum with members by using multiple inheritance
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41517>
_______________________________________
More information about the Python-bugs-list
mailing list