Roland Heiber newstonne at web.de
Wed Jul 13 14:48:36 CEST 2005

Francois De Serres wrote:
> All your **kwargs are belong to us.
> *args is documented in the Tutorial. I reckon **kwargs represents a 
> dictionary of arguments. But I don't quite get the semantics of **x. 
> Undefined length tuple of undefined length tuples? Are there other 
> practical use cases for ** (common enough please, I wish I was, but I'm 
> not a scientist).
> TIA,
> Francois
Assume d = { 'arg1':'value1','arg2':'value2' }. Then


is the same as:

func(arg1='value1', arg2='value2')

HtH, Roland

More information about the Python-list mailing list