def f(**args): print args f( ) f(a=1, b=2) def f(a, *pargs, **kargs): print a, pargs, kargs f(1, 2, 3, x=1, y=2)