- Notifications
You must be signed in to change notification settings - Fork750
Open
Description
fromSystemimportObjectclassL1(Object):__namespace__='TestNS'def__init__(self):super().__init__()print('42')classL2(L1):__namespace__='TestNS'o=L2()# 42 is not printed
Workaround
Explicitly redefine__init__
inL2
:
classL3(L1):__namespace__='TestNS'def__init__(self):super().__init__()o=L3()# prints '42'
Metadata
Metadata
Assignees
Labels
No labels