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
  • 120,885
  • 29
  • 225
  • 225
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
  • 1,928
  • 14
  • 16