Escaping variable names

  • Thread starter Kamil Wasilewski
  • Start date
K

Kamil Wasilewski

Hi,

Ive got an issue where a variable name needs to have a minus sign (-) in it.

#Python 2.6
from SOAPpy import WSDL
wsdlFile = "http://webapi.allegro.pl/uploader.php?wsdl"
server = WSDL.Proxy(wsdlFile)
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top