python calling a base class

I was adding some functionality to a bit of code, and realized that it would go much smoother if I just slightly modified the base class. The only trouble is that I am not 100% sure of just what the base class is called with.

After a little research I got this - which works well.

class ParentClass(object):
    def __init__(a,b,c,d,e,f,g):
        example=1

class ChildClass(ParentClass):
    def __init__(self, *args, **kwargs):
        super(ChildClass, self).__init__(*args, **kwargs)
        self.ChildInitSpecific()

This seems to to the job nicely.

class parent(object):
    def __init__(self):
       self.Name="hi"

class child(parent):
      def __init__(self,*args,**kwargs):
        #def __init__(self, *args, **kwargs):
        super(child, self).__init__(*args, **kwargs)
        junk=1

c=child()
print("%s"%c.Name)

Calling overloaded Methods

Sometimes you want to call the base class method -short example

class A(object):
    def print_it(self):
        print('A')

class B(A):
    def print_it(self):
        print('B')

b=B()
b.print_it()            #Prints B  - the recent class.
super(B, b).print_it()  #object b base class