This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author suhailsingh247
Recipients barry, eli.bendersky, ethan.furman, kamilturek, suhailsingh247
Date 2021-04-21.07:00:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618988423.84.0.937619791566.issue43430@roundup.psfhosted.org>
In-reply-to
Content
In my usecase, I wanted to override the behaviour of __getitem__. I was able to accomplish this by subclassing EnumMeta. 

Having done so, I was able to work around this bug as follows. Instead of trying to access the functional API via Enum (using an enum as the type parameter) and failing, I was able to succeed by accessing the functional API via subclass of Enum. Something like:
MyEnum2 = MyEnumBase1(...)
History
Date User Action Args
2021-04-21 07:00:23suhailsingh247setrecipients: + suhailsingh247, barry, eli.bendersky, ethan.furman, kamilturek
2021-04-21 07:00:23suhailsingh247setmessageid: <1618988423.84.0.937619791566.issue43430@roundup.psfhosted.org>
2021-04-21 07:00:23suhailsingh247linkissue43430 messages
2021-04-21 07:00:23suhailsingh247create