title: Python - inheritance and method overriding
body: <p>I have two classes, one inheriting from the other. Let's call them <code>Parent</code> and <code>Child</code>. 
  Both of the objects created from those classes should use function <code>funA</code>, which looks like below</p>
  
  <pre><code>funA():
    X = another_function()
    Y = # some value
    X.append(Y)
    # do other computations
  </code></pre>
  
  <p>For both classes, function <code>funA</code> looks almost the same, except function <code>another_function()</code>, which computes in a different way the list <code>X</code> for the <code>Parent</code> and differently for the <code>Child</code>. Of course, I know that I can override function <code>funA</code> in the Child class, but since this function is very long and does several operations, copy-pasting it would be a little bit a waste. On the other hand - I have to distinguish that the Parent class should use one version of <code>another_function()</code> and the Child class should use the second version of <code>another_function()</code>. Is is maybe possible to point which version of <code>another_function</code> (let's call them <code>another_function_v1</code> and <code>another_function_v2</code>) should be used by each class or the only solution if to override the whole function <code>funA</code>?</p>