class A ():
def __init__(self):
print("A")
class B (A):
def __init__(self):
super(B, self).__init__()
b = B ()
* * an error occurred when executing under py2
super (B, self). _ init__ ()
TypeError: must be type, not classobj**
there is no problem if parent class A uses the new class
class A (object):
def __init__(self):
print("A")
Why!?