SimpleXMLRPCServer and creating a new object on for each new client request.
Piet van Oostrum
piet at cs.uu.nl
Sat May 9 16:47:47 EDT 2009
>>>>> google at smetj.net (g) wrote:
>g> Well, I think Martin's example will suit my needs.
>g> Thanks for the explanation!
His client code is unnecessarily complicated with 3 session variables.
The following code does the same:
SESSION = xmlrpclib.ServerProxy(URL_PORT)
print(SESSION.show_random())
print(SESSION.show_random())
SESSION.shutdown_service()
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org
More information about the Python-list
mailing list