Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b4aadf54
Commit
b4aadf54
authored
Oct 22, 2003
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bug #809174] loads() and dumps() not documented
parent
3ca72fab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
Doc/lib/libxmlrpclib.tex
Doc/lib/libxmlrpclib.tex
+24
-0
No files found.
Doc/lib/libxmlrpclib.tex
View file @
b4aadf54
...
...
@@ -264,6 +264,30 @@ Convert any Python value to one of the XML-RPC Boolean constants,
Trivially convert any Python string to a
\class
{
Binary
}
object.
\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
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment