title: How do I call a parent class's method from a child class in Python?
body: <p>When creating a simple object hierarchy in Python, I'd like to be able to invoke methods of the parent class from a derived class.  In Perl and Java, there is a keyword for this (<a href="https://docs.oracle.com/javase/tutorial/java/IandI/super.html" rel="noreferrer"><code>super</code></a>).  In Perl, I might do this:</p>
  
  <pre><code>package Foo;
  
  sub frotz {
      return "Bamf";
  }
  
  package Bar;
  @ISA = qw(Foo);
  
  sub frotz {
     my $str = SUPER::frotz();
     return uc($str);
  }
  </code></pre>
  
  <p>In Python, it appears that I have to name the parent class explicitly from the child.
  In the example above, I'd have to do something like <code>Foo::frotz()</code>.  </p>
  
  <p>This doesn't seem right since this behavior makes it hard to make deep hierarchies.  If children need to know what class defined an inherited method, then all sorts of information pain is created.  </p>
  
  <p>Is this an actual limitation in python, a gap in my understanding or both?</p>