Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Explicitly redefine __init__ in L2:
__init__
L2
class L3(L1): __namespace__ = 'TestNS' def __init__(self): super().__init__() o = L3() # prints '42'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Workaround
Explicitly redefine
__init__
inL2
:The text was updated successfully, but these errors were encountered: