[Python-checkins] python/dist/src/Doc/lib libxmlrpclib.tex, 1.13, 1.14

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Wed Oct 22 10:12:05 EDT 2003


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv17612

Modified Files:
	libxmlrpclib.tex 
Log Message:
[Bug #809174] loads() and dumps() not documented

Index: libxmlrpclib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libxmlrpclib.tex,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** libxmlrpclib.tex	25 Apr 2003 00:29:31 -0000	1.13
--- libxmlrpclib.tex	22 Oct 2003 14:12:03 -0000	1.14
***************
*** 265,268 ****
--- 265,292 ----
  \end{funcdesc}
  
+ \begin{funcdesc}{dumps}{params\optional{, methodname\optional{, 
+ 	                methodresponse\optional{, encoding\optional{,
+ 	                allow_none}}}}}
+ 
+ Convert \var{params} into an XML-RPC request.
+ or into a response if \var{methodresponse} is true.
+ \var{params} can be either a tuple of arguments or an instance of the 
+ \exception{Fault} exception class.  If \var{methodresponse} is true,
+ only a single value can be returned, meaning that \var{params} must be of length 1.
+ \var{encoding}, if supplied, is the encoding to use in the generated
+ XML; the default is UTF-8.  Python's \constant{None} value cannot be
+ used in standard XML-RPC; to allow using it via an extension, 
+ provide a true value for \var{allow_none}.
+ \end{funcdesc}
+ 
+ \begin{funcdesc}{loads}{data}
+ Convert an XML-RPC request or response into Python objects, a
+ \code{(\var{params}, \var{methodname})}.  \var{params} is a tuple of argument; \var{methodname}
+ is a string, or \code{None} if no method name is present in the packet.
+ If the XML-RPC packet represents a fault condition, this
+ function will raise a \exception{Fault} exception.
+ \end{funcdesc}
+ 
+ 
  
  \subsection{Example of Client Usage \label{xmlrpc-client-example}}





More information about the Python-checkins mailing list