How do I access avariable named "return"?

Brian Beck exogen at gmail.com
Tue Jun 21 10:17:52 EDT 2005


> I think this seems to be a problem due to the use of a forbidden word. But I
> have no chance to change the WSDL definition, so: How can I get the
> variable resp.return? Any suggestions?

To get it: getattr(resp, 'return')
To set it: setattr(resp, 'return', value)

--
Brian Beck
Adventurer of the First Order




More information about the Python-list mailing list