This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: SimpleXMLRPCServer example is broken
Type: Stage:
Components: Documentation Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, kjohnson
Priority: normal Keywords:

Created on 2004-10-06 14:31 by kjohnson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg22600 - (view) Author: Kent Johnson (kjohnson) * Date: 2004-10-06 14:31
Section 11.21.1 of the library reference
(SimpleXMLRPCServer Objects) includes this class
definition:

class MyFuncs:
    def div(self, x, y) : return div(x,y)


This is given to the sample server as in instance object. 

The problem is that there is no global div() function
so attempting to call div() from XML-RPC returns a
Fault with a NameError.
msg22601 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2004-10-08 18:34
Logged In: YES 
user_id=11375

Fixed; thanks!
msg22602 - (view) Author: Kent Johnson (kjohnson) * Date: 2005-06-23 12:39
Logged In: YES 
user_id=49695

Reopened because a similar fix is needed on the page 11.23.2
CGIXMLRPCRequestHandler
msg22603 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2005-12-04 17:18
Logged In: YES 
user_id=11375

Fixed the CGIXMLRPCRequestHandler, too; thanks again.
History
Date User Action Args
2022-04-11 14:56:07adminsetgithub: 40987
2004-10-06 14:31:38kjohnsoncreate