title: Python function as a function argument?
body: <p>Suppose I have some code like:</p>
  <pre><code>def myfunc(anotherfunc, extraArgs):
      # somehow call `anotherfunc` here, passing it the `extraArgs`
      pass
  </code></pre>
  <p>I want to pass another existing function as the <code>anotherfunc</code> argument, and a list or tuple of arguments as <code>extraArgs</code>, and have <code>myfunc</code> call the passed-in function with those arguments.</p>
  <p>Is this possible? How do I do it - would I need <code>exec</code>/<code>eval</code> or similar?</p>