Author talsuk5
Recipients barry, eli.bendersky, eric.smith, ethan.furman, talsuk5
Date 2020-08-10.19:24:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597087442.86.0.360014198552.issue41517@roundup.psfhosted.org>
In-reply-to
Content
sorry, I'll explain. by "when inheriting an implemented enum, we get a runtime error" I refer to this https://docs.python.org/3/library/enum.html#restricted-enum-subclassing

You shouldn't be able to subclass an enum, yet I just showed a loophole. my example code shows you can subclass an enum by using a trick, multiple inheritance.

I hope it's more clear now :)

btw it also works with regular Enum inheritance (I just used IntEnum for simplicity)
History
Date User Action Args
2020-08-10 19:24:02talsuk5setrecipients: + talsuk5, barry, eric.smith, eli.bendersky, ethan.furman
2020-08-10 19:24:02talsuk5setmessageid: <1597087442.86.0.360014198552.issue41517@roundup.psfhosted.org>
2020-08-10 19:24:02talsuk5linkissue41517 messages
2020-08-10 19:24:02talsuk5create