Programmatically pass unknown number of parameters in Python
<p>I'd like an easy way to plug in a function and arguments to be executed later so I can have a kind of wrapper around it.</p>

<p>In this case, I'd like to use it to benchmark, example:</p>

<pre><code>def timefunc(fn, *args):
   start = time.clock()
   fn(args)
   stop = time.clock()
   return stop - start
</code></pre>

<p>How do I pass arguments where the number of parameters aren't known?  How do I find the number of parameters?  How would I even call the function once I knew the number of parameters?</p>
