[ python-Bugs-1041501 ] SimpleXMLRPCServer example is broken

SourceForge.net noreply at sourceforge.net
Fri Oct 8 20:34:37 CEST 2004


Bugs item #1041501, was opened at 2004-10-06 10:31
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1041501&group_id=5470

Category: Documentation
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Kent Johnson (kjohnson)
>Assigned to: A.M. Kuchling (akuchling)
Summary: SimpleXMLRPCServer example is broken

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2004-10-08 14:34

Message:
Logged In: YES 
user_id=11375

Fixed; thanks!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1041501&group_id=5470


More information about the Python-bugs-list mailing list