call f(a, *b) with f(*a, **b) ?

inhahe inhahe at gmail.com
Thu May 22 20:39:39 EDT 2008


>> 1
>> 2

actually, you don't want it to print 3 also?  if not, then you would do 
f(*map(kwargs.get, inspect.getargspec(f)[0])+args[:1])

> import inspect
> f(*map(kwargs.get, inspect.getargspec(f)[0])+args)
>





More information about the Python-list mailing list