Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c523a815
Commit
c523a815
authored
Aug 08, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#18267: merge with 3.3.
parents
09b724f6
0cf6ed9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Doc/library/xmlrpc.client.rst
Doc/library/xmlrpc.client.rst
+9
-9
No files found.
Doc/library/xmlrpc.client.rst
View file @
c523a815
...
...
@@ -439,14 +439,14 @@ A usage example of this class follows. The server code::
from xmlrpc.server import SimpleXMLRPCServer
def add(x,y):
return x
+
y
def add(x,
y):
return x
+
y
def subtract(x, y):
return x
-
y
return x
-
y
def multiply(x, y):
return x
*
y
return x
*
y
def divide(x, y):
return x // y
...
...
@@ -467,13 +467,13 @@ The client code for the preceding server::
proxy = xmlrpc.client.ServerProxy("http://localhost:8000/")
multicall = xmlrpc.client.MultiCall(proxy)
multicall.add(7,3)
multicall.subtract(7,3)
multicall.multiply(7,3)
multicall.divide(7,3)
multicall.add(7,
3)
multicall.subtract(7,
3)
multicall.multiply(7,
3)
multicall.divide(7,
3)
result = multicall()
print("7+3=%d, 7-3=%d, 7*3=%d, 7/3=%d" % tuple(result))
print("7+3=%d, 7-3=%d, 7*3=%d, 7/
/
3=%d" % tuple(result))
Convenience Functions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment