Forwarding keyword arguments

Robert Dailey rcdailey at gmail.com
Wed Jun 24 02:45:00 CEST 2009


On Jun 23, 7:34 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Tue, 23 Jun 2009 20:57:36 -0300, Robert Dailey <rcdai... at gmail.com>  
> escribió:
>
> > Suppose I have 2 functions like so:
>
> > def Function2( **extra ):
> >    # do stuff
>
> > def Function1( **extra ):
> >    Function2( extra )
>
> > As you can see, I would like to forward the additional keyword
> > arguments in variable 'extra' to Function2 from Function1. How can I
> > do this? I'm using Python 3.0.1
>
> Function2(**extra)
> Seehttp://docs.python.org/3.0/reference/expressions.html#calls
>
> --
> Gabriel Genellina

Thanks for the answer. I did look through the docs but I missed it I
guess.



More information about the Python-list mailing list