0

I'm confused what one * and two ** does in front of a parameter.

def wrapper(*args, **wdargs):

2 Answers2

0

It means keyword arguments.

eg.

func(x, y, foo='a') # where foo is a keyword argument
jamylak
  • 128,818
  • 30
  • 231
  • 230
0

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/

Arsh Singh
  • 2,038
  • 15
  • 16