[New-bugs-announce] [issue43430] Exception raised when attempting to create Enum via functional API

Suhail S. report at bugs.python.org
Sun Mar 7 19:58:27 EST 2021


New submission from Suhail S. <suhailsingh247 at gmail.com>:

It is possible to create custom Enum classes with a metaclass that is a subtype of EnumMeta. It is also possible to inherit from such an enumeration to create another enumeration. However, attempting to do so via the functional API raises an exception. See attached file that highlights minimal failing test case.

----------
components: Library (Lib)
files: test.py
messages: 388255
nosy: suhailsingh247
priority: normal
severity: normal
status: open
title: Exception raised when attempting to create Enum via functional API
type: crash
versions: Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file49855/test.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43430>
_______________________________________


More information about the New-bugs-announce mailing list