title: Python inheritance - how to inherit class function?
body: <p>I'm new with python and having some trouble regarding inheritance.</p>
  
  <p>i have this class:</p>
  
  <pre><code>class A(object):
      def __init__(self, foo, bar):
          pass     
      def func1(self):
          op1()
          op2()
      def func2(self):
          pass
  </code></pre>
  
  <p>I'm using another class that is overriding it :</p>
  
  <pre><code>class B(A):
      def func2(self):
          # do something
  </code></pre>
  
  <p>the problem is that I want to get <code>func1</code> with all its operations and add for example <code>op3()</code>
  so that when using this class I will have the option to use <code>op1</code>, <code>op2</code> or <code>op3</code>.</p>
  
  <p>I've tried using:</p>
  
  <pre><code>def func1(self):
      op3()
  </code></pre>
  
  <p>but it just gave me the option of <code>op3</code> without <code>op1</code> and <code>op2</code>.</p>
  
  <p>I saw that there is "super" option but I'm not sure I understand how to use it.</p>