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.
In this case, I'd like to use it to benchmark, example:
def timefunc(fn, *args):
start = time.clock()
fn(args)
stop = time.clock()
return stop - start
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?