title: Python: how to catch calls to derived class?
body: <p>Say I have a base class <code>base</code> and a derived class <code>derive</code>.</p>
  <p>I want to do two things: override one method in <code>base</code>. This is done by simply overriding it in <code>derive</code>.</p>
  <p>However, I <strong>also</strong> want to do something to all the other methods on <code>base</code>. What I want to do is simply call the <code>base</code> function's method, then multiply the result by <code>-1</code>.</p>
  <p>As you can see, I am now forced to write out all these methods in <code>derive</code>, call the <code>super().method</code>, then multiply by <code>-1</code> and return.</p>
  <p>Is there not a way to catch <strong>all</strong> these other functions in <code>derive</code>, then do it for them all simultaneously?</p>
  <pre><code>class Base:
      def override():
          pass # override this manually in derived
      def method1():
          pass # multiply by -1 in derive
      def method2():
          pass # multiply by -1 in derive
      def method3():
          pass # multiply by -1 in derive
      def method4():
          pass # multiply by -1 in derive
  
  class Derived(Base)
  
      # now what do I do here that avoids writing out all the methods??
  </code></pre>