1

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
  • 2,105
  • 4
  • 21
  • 29

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
  • 776,304
  • 153
  • 1,341
  • 1,358