title: Calling __init__ of all parent class with different parameters
body: <p>I have some class structure like this:</p>
  
  <pre><code>class A:
      def __init__(self):
          print("A")
  class B:
      def __init__(self, x):
          print("B")
  
  class C(A,B):
      def __init__(self):
          super(C, self).__init__() # ???
  
  c=C()
  </code></pre>
  
  <p>As you can see, <code>A</code> and <code>B</code> both are parent class of <code>C</code>. I want to call both classes <code>__init__</code> in <code>C</code>'s <code>__init__</code>. I want to pass some parameter to B's <code>__init__</code>. Is there any way I can do this with <code>super</code> keyword? I think that this will work:</p>
  
  <pre><code>class C(A,B):
      def __init__(self):
          A.__init__()
          B.__init__(5)
  </code></pre>
  
  <p>Should we call <code>__init__</code> directly in such a way, or is there any better solution for this?</p>