[Python-checkins] r45755 - python/branches/release24-maint/Doc/lib/libxmlrpclib.tex
andrew.kuchling
python-checkins at python.org
Thu Apr 27 14:48:56 CEST 2006
Author: andrew.kuchling
Date: Thu Apr 27 14:48:56 2006
New Revision: 45755
Modified:
python/branches/release24-maint/Doc/lib/libxmlrpclib.tex
Log:
Mention xmlrpclib.Error base class; import Error in example
Modified: python/branches/release24-maint/Doc/lib/libxmlrpclib.tex
==============================================================================
--- python/branches/release24-maint/Doc/lib/libxmlrpclib.tex (original)
+++ python/branches/release24-maint/Doc/lib/libxmlrpclib.tex Thu Apr 27 14:48:56 2006
@@ -71,9 +71,11 @@
This is the full set of data types supported by XML-RPC. Method calls
may also raise a special \exception{Fault} instance, used to signal
XML-RPC server errors, or \exception{ProtocolError} used to signal an
-error in the HTTP/HTTPS transport layer. Note that even though starting
-with Python 2.2 you can subclass builtin types, the xmlrpclib module
-currently does not marshal instances of such subclasses.
+error in the HTTP/HTTPS transport layer. Both \exception{Fault} and
+\exception{ProtocolError} derive from a base class called
+\exception{Error}. Note that even though starting with Python 2.2 you
+can subclass builtin types, the xmlrpclib module currently does not
+marshal instances of such subclasses.
When passing strings, characters special to XML such as \samp{<},
\samp{>}, and \samp{\&} will be automatically escaped. However, it's
@@ -318,7 +320,7 @@
\begin{verbatim}
# simple test program (from the XML-RPC specification)
-from xmlrpclib import ServerProxy
+from xmlrpclib import ServerProxy, Error
# server = ServerProxy("http://localhost:8000") # local server
server = ServerProxy("http://betty.userland.com")
More information about the Python-checkins
mailing list