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
f8d0c075
Commit
f8d0c075
authored
Apr 25, 2003
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Patch #628208] Document the allow_none argument
parent
0b852039
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Doc/lib/libxmlrpclib.tex
Doc/lib/libxmlrpclib.tex
+8
-2
No files found.
Doc/lib/libxmlrpclib.tex
View file @
f8d0c075
...
@@ -18,7 +18,8 @@ handles all the details of translating between conformable Python
...
@@ -18,7 +18,8 @@ handles all the details of translating between conformable Python
objects and XML on the wire.
objects and XML on the wire.
\begin{classdesc}
{
ServerProxy
}{
uri
\optional
{
, transport
\optional
{
,
\begin{classdesc}
{
ServerProxy
}{
uri
\optional
{
, transport
\optional
{
,
encoding
\optional
{
, verbose
}}}}
encoding
\optional
{
, verbose
\optional
{
,
allow
_
none
}}}}}
A
\class
{
ServerProxy
}
instance is an object that manages communication
A
\class
{
ServerProxy
}
instance is an object that manages communication
with a remote XML-RPC server. The required first argument is a URI
with a remote XML-RPC server. The required first argument is a URI
(Uniform Resource Indicator), and will normally be the URL of the
(Uniform Resource Indicator), and will normally be the URL of the
...
@@ -26,7 +27,12 @@ server. The optional second argument is a transport factory instance;
...
@@ -26,7 +27,12 @@ server. The optional second argument is a transport factory instance;
by default it is an internal
\class
{
SafeTransport
}
instance for https:
by default it is an internal
\class
{
SafeTransport
}
instance for https:
URLs and an internal HTTP
\class
{
Transport
}
instance otherwise. The
URLs and an internal HTTP
\class
{
Transport
}
instance otherwise. The
optional third argument is an encoding, by default UTF-8. The optional
optional third argument is an encoding, by default UTF-8. The optional
fourth argument is a debugging flag.
fourth argument is a debugging flag. If
\var
{
allow
_
none
}
is true,
the Python constant
\code
{
None
}
will be translated into XML; the
default behaviour is for
\code
{
None
}
to raise a
\exception
{
TypeError
}
.
This is a commonly-used extension to the XML-RPC specification, but isn't
supported by all clients and servers; see
\url
{
http://ontosys.com/xml-rpc/extensions.html
}
for a description.
Both the HTTP and HTTPS transports support the URL syntax extension for
Both the HTTP and HTTPS transports support the URL syntax extension for
HTTP Basic Authentication:
\code
{
http://user:pass@host:port/path
}
. The
HTTP Basic Authentication:
\code
{
http://user:pass@host:port/path
}
. The
...
...
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