On Friday 05 March 2010, Kamil Wasilewski wrote:
> > server.doGetCountries(**{
> > 'country-code': COUNTRYID, 'webapi-key': WEBAPIKEY
> > })
>
> The above gives a syntax error...
What kind of syntax error? I tested this approached on the interactive
Python shell and it worked fine there:
>>> def f(**kvargs):
... print kvargs
...
>>> f(a = 1, **{'b-c': 12})
{'a': 1, 'b-c': 12}
Bye,
Maarten
_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python