XMLRPC - persistent object state on server

Brian Quinlan brian at sweetapp.com
Fri Apr 10 11:37:11 CEST 2009


Demidov Andrey wrote:
> class MyClass:
>     def __init__(self, a):
>         self.a = a
>         # and some heavy works which I would like to do once
>     def say(self):
>         return a
> 

Change:
       def say(self):
           return a

to:
       def say(self):
           return self.a

Cheers,
Brian



More information about the Python-list mailing list