I'm confused what one * and two ** does in front of a parameter.
def wrapper(*args, **wdargs):
I'm confused what one * and two ** does in front of a parameter.
def wrapper(*args, **wdargs):
It means keyword arguments.
eg.
func(x, y, foo='a') # where foo is a keyword argument
They are used to accept a variable number of arguements. Check this out : http://www.saltycrane.com/blog/2008/01/how-to-use-args-and-kwargs-in-python/