Re: [Tutor] Variable name containing '-'

2017-09-02 Thread Peter Otten
ramakrishna reddy wrote: > Hi there, > > I am implementing a soap webservice where a method which has keyword > parameter(named:abc-xyz) needs to be used to call third party app. > > eg: obj.method(abc-xyz=10) > > As python does not support '-' in variable names, I am a bit confused. > I know i

Re: [Tutor] Variable name containing '-'

2017-09-01 Thread Steven D'Aprano
On Fri, Sep 01, 2017 at 01:48:06PM -0700, ramakrishna reddy wrote: > Hi there, > > I am implementing a soap webservice where a method which has keyword > parameter(named:abc-xyz) needs to be used to call third party app. Just because your webservice offers a parameter called "foo" doesn't mean y

[Tutor] Variable name containing '-'

2017-09-01 Thread ramakrishna reddy
Hi there, I am implementing a soap webservice where a method which has keyword parameter(named:abc-xyz) needs to be used to call third party app. eg: obj.method(abc-xyz=10) As python does not support '-' in variable names, I am a bit confused. I know in case of methods we can use getattr(self.ob