title: How to return a value computed by overriding method from a subclass to it's base class method in python
body: <p>I have a base class like this:</p>
  
  <pre><code>class base(object):
      name = ""
      def __init__(self,name):
          self.user =user
      def context(self,value):
          return {}
  </code></pre>
  
  <p>Instead of this i created an another subclass and override this above "context" method:</p>
  
  <pre><code>class override(base):
      name = "New class"
      def context(self, value):
          a = []
          a = "hello","b"
          return a
  </code></pre>
  
  <p>I want to create a plugins, all they have are different definitions (different value of list will return) for context method. So i want to do this by putting override functionality. </p>
  
  <p>When i call this <code>base.context</code> function from an another file. Following things should be happen:</p>
  
  <ol>
  <li><p>The list i.e <code>"a"</code> (in override context method) should return it's value to base context method first. </p></li>
  <li><p>After getting a value from <code>override.context</code> method, base.context will return that value to from where it's called after making some changes into it.</p></li>
  </ol>
  
  <p>But, When i call this <code>base.description</code> method it will return a value directly from <code>override.description</code> method. So i am not able to make that changes into it :(</p>