title: Python: Call child method inside parent method from child method
body: <p>I want to be able to recycle a method from a parent class that uses a second method in that parent class. However the second method is overridden in the child class. I want the recycled parent method to use the new overridden second method when it is called from the child class. An example of how I want it to work will hopefully make this clearer:</p>
  
  <pre><code>class Parent:
      def method1(self, num):
          return num**2
      def method2(self, list_size):
          return [self.method1(i) for i in range(list_size)] #List of squares
  
  class Child(Parent):
      def method1(self, num): #Overrides corresponding parent method
          return num**3
      def method2(self, list_size):
          return super().method2(list_size) #Returns a list of cubes using child's method 1.
  </code></pre>
  
  <p>Is this possible in python3? Or will calling the parent's method 2 also use the parent's method 1? I'm hoping to reuse large parts of a parent class as the child class differs in only a few ways. The methods nesting like that in the parent class make it a lot more general.</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: I forgot to test it with simple code! It does work like I wanted if anyone was wondering!</p>