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
func(**d) is the same as: func(arg1='value1', arg2='value2') HtH, Roland -- http://mail.python.org/mailman/listinfo/python-list