SimpleXMLRPCServer and creating a new object on for each new client request.

Piet van Oostrum piet at cs.uu.nl
Fri May 8 04:49:39 EDT 2009


>>>>> Piet van Oostrum <piet at cs.uu.nl> (PvO) wrote:

>>>>> Jelle Smet <jelle at smetj.net> (JS) wrote:
>PvO> One more thing:

>JS> I start python interactively:
>>>>> import xmlrpclib
>>>>> session1=xmlrpclib.ServerProxy('http://localhost:8000')
>>>>> session2=xmlrpclib.ServerProxy('http://localhost:8000')
>>>>> print session1.show_random()
>JS> 13930
>>>>> print session2.show_random()
>JS> 13930
>>>>> 

>PvO> I get the impression, also from your use of the variable names
>PvO> 'session1' and 'session2' that xmlrpclib.ServerProxy() gives you some
>PvO> kind of connection to the XMLRPC server. 

This should have been: I get the impression, also from your use of the
variable names 'session1' and 'session2', *that you think* that
xmlrpclib.ServerProxy() gives you some kind of connection to the XMLRPC
server.
-- 
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