How do I access avariable named "return"?

Holger Wirtz wirtz at dfn.de
Tue Jun 21 10:21:40 EDT 2005


Brian Beck wrote:

>> 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

Ahhh! That's it! Thanks a lot!!!

Holger




More information about the Python-list mailing list