Piet van Oostrum wrote:
goo...@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()

I was actually aware of that, but I thought it would be more educational if I rewrote Jelle's example by using code conformity and a way to test server and client in a single script instead of just rewriting it to the given intent. With the knowledge provided, Jelle should be able to redesign his program to what he actually wants to do with it and cutting out the croft himself.

P.S. Piet ben je toevallig lid van NLUUG?

--
MPH
http://blog.dcuktec.com
'If consumed, best digested with added seasoning to own preference.'
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to