Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea30c6f commit 167543cCopy full SHA for 167543c
1 file changed
Doc/library/xmlrpc.server.rst
@@ -136,10 +136,10 @@ Server code::
136
server.register_function(adder_function, 'add')
137
138
# Register an instance; all the methods of the instance are
139
- # published as XML-RPC methods (in this case, just 'div').
+ # published as XML-RPC methods (in this case, just 'mul').
140
class MyFuncs:
141
- def div(self, x, y):
142
- return x // y
+ def mul(self, x, y):
+ return x * y
143
144
server.register_instance(MyFuncs())
145
@@ -209,7 +209,8 @@ requests sent to Python CGI scripts.
209
Example::
210
211
212
- def div(self, x, y) : return x // y
213
214
215
216
handler = CGIXMLRPCRequestHandler()
0 commit comments