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
-
Thank you.
Of course, it is my stupid mistake.
Change:
> def say(self):
> return a
>
> to:
> def say(self):
> return self.a
>
> Cheers,
> Brian
>
--
http://mail.python.org/mailman/listinfo/python-list
Hi, all
I need a XMLRPC server, which works with database and returns data to
the clients.
But I can not find any possibility to keep the object state on server
between the clients calls.
Here is my code:
1. Server:
from SimpleXMLRPCServer import SimpleXMLRPCServer
from Simple