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 TUTORIALS


PYTHON TUTORIALS » Class » Super »

 

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"



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Class
» Super