Created
December 30, 2013 04:55
-
-
Save studiawan/8177981 to your computer and use it in GitHub Desktop.
XML RPC client for boolean server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://docs.python.org/2/library/xmlrpclib.html | |
import xmlrpclib | |
proxy = xmlrpclib.ServerProxy("http://localhost:8000/") | |
print "3 is even: %s" % str(proxy.is_even(3)) | |
print "100 is even: %s" % str(proxy.is_even(100)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment