[New-bugs-announce] [issue41517] Enum multiple inheritance loophole

Tal Suhareanu report at bugs.python.org
Mon Aug 10 13:47:58 EDT 2020


New submission from Tal Suhareanu <talsuk5 at gmail.com>:

when inheriting an implemented enum, we get a runtime error
But when creating a multiple inheritance like the following, it works… so something feels broken in the enum mechanism

------------------------------------
from enum import IntEnum, Enum

class A(IntEnum):
   a = 1

class B(A, Enum):
   b= 1

print(B.b)
------------------------------------

----------
components: Library (Lib)
messages: 375133
nosy: talsuk5
priority: normal
severity: normal
status: open
title: Enum multiple inheritance loophole
type: behavior
versions: Python 3.7

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


More information about the New-bugs-announce mailing list