mirror of
https://github.com/python/cpython.git
synced 2025-11-13 23:46:24 +00:00
Closes #18267: use floor division in code example
This commit is contained in:
parent
1d7d580d0e
commit
c3db3739aa
1 changed files with 2 additions and 2 deletions
|
|
@ -435,7 +435,7 @@ remote server into a single request [#]_.
|
||||||
is a :term:`generator`; iterating over this generator yields the individual
|
is a :term:`generator`; iterating over this generator yields the individual
|
||||||
results.
|
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
|
from xmlrpc.server import SimpleXMLRPCServer
|
||||||
|
|
||||||
|
|
@ -449,7 +449,7 @@ A usage example of this class follows. The server code ::
|
||||||
return x*y
|
return x*y
|
||||||
|
|
||||||
def divide(x, y):
|
def divide(x, y):
|
||||||
return x/y
|
return x // y
|
||||||
|
|
||||||
# A simple server with simple arithmetic functions
|
# A simple server with simple arithmetic functions
|
||||||
server = SimpleXMLRPCServer(("localhost", 8000))
|
server = SimpleXMLRPCServer(("localhost", 8000))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue