when using the keyword super, and that is why the super() built-in function was eventually added to Python, so you could "do the correct thing" functionally : super « Class « Python Tutorial
11. 30. 3. when using the keyword super, and that is why the super() built-in function was eventually added to Python, so you could "do the correct thing" functionally
class P(object):
def __init__(self):
print "calling P's constructor"
class C(P):
def __init__(self): super(C, self).__init__()
print "calling C's constructor"
when using the keyword super, and that is why the super() built-in function was eventually added to Python, so you could "do the correct thing" functionally