[Python-checkins] cpython (3.3): Closes #18267: use floor division in code example
andrew.kuchling
python-checkins at python.org
Fri Jun 21 03:40:26 CEST 2013
http://hg.python.org/cpython/rev/2a3bc6eb2e13
changeset: 84233:2a3bc6eb2e13
branch: 3.3
parent: 84230:b805506b11e0
user: Andrew Kuchling <amk at amk.ca>
date: Thu Jun 20 21:33:05 2013 -0400
summary:
Closes #18267: use floor division in code example
files:
Doc/library/xmlrpc.client.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/xmlrpc.client.rst b/Doc/library/xmlrpc.client.rst
--- a/Doc/library/xmlrpc.client.rst
+++ b/Doc/library/xmlrpc.client.rst
@@ -435,7 +435,7 @@
is a :term:`generator`; iterating over this generator yields the individual
results.
-A usage example of this class follows. The server code ::
+A usage example of this class follows. The server code::
from xmlrpc.server import SimpleXMLRPCServer
@@ -449,7 +449,7 @@
return x*y
def divide(x, y):
- return x/y
+ return x // y
# A simple server with simple arithmetic functions
server = SimpleXMLRPCServer(("localhost", 8000))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list