using python reserved keyword as variable name
<p>im trying to send sms using  a webservice , this is  what webservice document suggest  :</p>

<pre><code>response = client.service.SendSMS(  fromNum = '09999999' ,
                toNum = '0666666666666',
                messageContent = 'test',
                messageType = 'normal',
                user = 'myusername',
                pass = '123456' ,
           )
</code></pre>

<p>to be fair they dont have document for python only php/asp so i've converted this from their php sample but as unlike me some may know <code>pass</code> is a reserved keyword of python </p>

<p>so i cant have variable name <code>pass</code> becuz i get syntax error ! </p>

<p>is there a way around trhis or i should switch to another webservice ? i wish we could put variable names in quotation  mark or something </p>

<p>Maybe try it like this:</p>

<pre><code>sms_kwargs = {
    'toNum': '0666666666666',
    'messageContent': 'test',
    'messageType': 'normal',
    'user': 'myusername',
    'pass': '123456'
}
response = client.service.SendSMS(**sms_kwargs)
</code></pre>

python django web-services python-3.x