[Twisted-Python] Escaping variable names

Phil Christensen phil at bubblehouse.org
Fri Mar 5 12:26:46 EST 2010

On Mar 5, 2010, at 12:15 PM, Kamil Wasilewski wrote:
> server.soapproxy.config.argsOrdering = {'doGetCountries': ['country-code', 'webapi-key'] }
> server.doGetCountries(country-code=COUNTRYID}, webapi-key=WEBAPIKEY)
> The above method allows me to specify the order and name of variables being sent, but i have a problem since the variables have a "-" sign in the middle, is there a way to escape it in the variable name or get around the problem?
> Thanks!


server.doGetCountries(**{'country-code':COUNTRYID, 'webapi-key':WEBAPIKEY})


More information about the Twisted-Python mailing list