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
585775bf
Commit
585775bf
authored
Jun 14, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the Binary.data attribute.
This closes SF bug #562878.
parent
9c92b69a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
Doc/lib/libxmlrpclib.tex
Doc/lib/libxmlrpclib.tex
+13
-5
No files found.
Doc/lib/libxmlrpclib.tex
View file @
585775bf
...
...
@@ -177,20 +177,28 @@ It also supports certain of Python's built-in operators through
\subsection
{
Binary Objects
\label
{
binary-objects
}}
This class may initialized from string data (which may include NULs).
It has the following methods, supported mainly for internal use by the
marshalling/unmarshalling cod
e:
The primary acess to the content of a
\class
{
Binary
}
object is
provided by an attribut
e:
\begin{methoddesc}
{
decode
}{
string
}
\begin{memberdesc}
[Binary]
{
data
}
The binary data encapsulated by the
\class
{
Binary
}
instance. The data
is provided as an 8-bit string.
\end{memberdesc}
\class
{
Binary
}
objects have the following methods, supported mainly
for internal use by the marshalling/unmarshalling code:
\begin{methoddesc}
[Binary]
{
decode
}{
string
}
Accept a base64 string and decode it as the instance's new data.
\end{methoddesc}
\begin{methoddesc}
{
encode
}{
out
}
\begin{methoddesc}
[Binary]
{
encode
}{
out
}
Write the XML-RPC base 64 encoding of this binary item to the out
stream object.
\end{methoddesc}
It also supports certain of Python's built-in operators through a
\method
{_
cmp
__}
method.
\method
{_
cmp
__
()
}
method.
\subsection
{
Fault Objects
\label
{
fault-objects
}}
...
...
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