title: Dynamic Method Call In Python 2.7 using strings of method names
body: <p>I have a tuple which lists down the methods of a class like:</p>
  
  <pre><code>t = ('methA','methB','methC','methD','methE','methF')
  </code></pre>
  
  <p>and so on..</p>
  
  <p>Now I need to dynamically call these methods based on a user made selection. The methods are to be called based on the index. So if a user selects '0', <code>methA</code> is called, if '5', <code>methF</code> is called.</p>
  
  <p>My method for doing this is as follows:</p>
  
  <pre><code>def makeSelection(self, selected):
      #methodname = t[selected]
      #but as this is from  within the class , it has to be appended with 'self.'methodname
      # also need to pass some arguments locally calculated here
  </code></pre>
  
  <p>I have managed to work out something with <code>eval</code> but it yields error and is not at all elegant.</p>