Forwarding keyword arguments

R

Robert Dailey

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
 
R

Robert Dailey

Function2(**extra)
Seehttp://docs.python.org/3.0/reference/expressions.html#calls

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,052
Members
47,656
Latest member
rickwatson

Latest Threads

Top