[Python-checkins] r77857 - python/branches/py3k/Doc/library/xmlrpc.server.rst

georg.brandl python-checkins at python.org
Sat Jan 30 18:54:04 CET 2010


Author: georg.brandl
Date: Sat Jan 30 18:54:04 2010
New Revision: 77857

Log:
#7814: fix wrong example function usage.

Modified:
   python/branches/py3k/Doc/library/xmlrpc.server.rst

Modified: python/branches/py3k/Doc/library/xmlrpc.server.rst
==============================================================================
--- python/branches/py3k/Doc/library/xmlrpc.server.rst	(original)
+++ python/branches/py3k/Doc/library/xmlrpc.server.rst	Sat Jan 30 18:54:04 2010
@@ -136,10 +136,10 @@
    server.register_function(adder_function, 'add')
 
    # Register an instance; all the methods of the instance are
-   # published as XML-RPC methods (in this case, just 'div').
+   # published as XML-RPC methods (in this case, just 'mul').
    class MyFuncs:
-       def div(self, x, y):
-           return x // y
+       def mul(self, x, y):
+           return x * y
 
    server.register_instance(MyFuncs())
 
@@ -209,7 +209,8 @@
 Example::
 
    class MyFuncs:
-       def div(self, x, y) : return x // y
+       def mul(self, x, y):
+           return x * y
 
 
    handler = CGIXMLRPCRequestHandler()


More information about the Python-checkins mailing list