Forwarding keyword arguments

Stephen Hansen apt.shansen at gmail.com
Tue Jun 23 20:25:47 EDT 2009


> 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


def Function1(**extra):
    Function2(**extra)

--S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090623/9befa4c5/attachment.html>


More information about the Python-list mailing list