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

bukzor workitharder at gmail.com
Fri May 23 02:21:50 EDT 2008


On May 22, 5:39 pm, "inhahe" <inh... at gmail.com> wrote:
> >> 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)
>
>

No, that was a typo. Thanks tho.



More information about the Python-list mailing list