Open
Description
from System import Object
class L1(Object):
__namespace__ = 'TestNS'
def __init__(self):
super().__init__()
print('42')
class L2(L1):
__namespace__ = 'TestNS'
o = L2() # 42 is not printed
Workaround
Explicitly redefine __init__
in L2
:
class L3(L1):
__namespace__ = 'TestNS'
def __init__(self):
super().__init__()
o = L3() # prints '42'
Metadata
Metadata
Assignees
Labels
No labels