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






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"








11.30.super
11.30.1.alternative: the super function.
11.30.2.A list with an access counter
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
11.30.4.Using super