0

Possible Duplicate:
*args and **kwargs?

I seen function called

def x(**xyz):
    print "Ok"

Now in this function what is meaning of **xyz i.e. ** is for what ?

Community
  • 1
  • 1
Hitul Mistry
  • 1,903
  • 4
  • 19
  • 26

1 Answers1

3

As explained in the tutorial, keyword arguments.

When a final formal parameter of the form **name is present, it receives a dictionary (see Mapping Types — dict) containing all keyword arguments except for those corresponding to a formal parameter.

Ignacio Vazquez-Abrams
  • 740,318
  • 145
  • 1,296
  • 1,325