blob: 2c55c517780a153ad4dbf6a0ca16acbefb53cdde [file] [log] [blame]
class A(object):
def __init__(self):
pass
class AA(A):
def __init__(self):
A.__init__(self)
print("Constructor AA was called")
class B(A):
def <warning descr="Call to __init__ of super class is missed">__init__</warning>(self):
print("Constructor B was called")
class C(B):
def __init__(self):
super(C, self).__init__()
print("Constructor C was called")
class A2:
def __init__(self):
print("A2 __init__")
class B2(A2):
def __init__(self):
A2.__init__(self)
print("Constructor B was called")
class C2(B2):
def <warning descr="Call to __init__ of super class is missed">__init__</warning>(self):
print("Constructor C2 was called")
class D2(C2):
def __init__(self):
super(C2, self).__init__()
print("Constructor D2 was called")
class E2(A2):
def __init__(self):
super().__init__()
print("Constructor E2 was called")
class F2(A2):
def <warning descr="Call to __init__ of super class is missed">__init__</warning>(self):
super(D2, self).__init__()
print("Constructor F2 was called")