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
2ee6a702
Commit
2ee6a702
authored
Aug 07, 2004
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Patch #999280 ] Update kwargs in pickle docs to match implementations
parent
4eb1a00c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Doc/lib/libpickle.tex
Doc/lib/libpickle.tex
+9
-9
No files found.
Doc/lib/libpickle.tex
View file @
2ee6a702
...
...
@@ -170,12 +170,12 @@ as a \var{protocol} value.
The
\module
{
pickle
}
module provides the
following functions to make this process more convenient:
\begin{funcdesc}
{
dump
}{
obj
ect
, file
\optional
{
, protocol
\optional
{
, bin
}}}
Write a pickled representation of
\var
{
obj
ect
}
to the open file object
\begin{funcdesc}
{
dump
}{
obj, file
\optional
{
, protocol
\optional
{
, bin
}}}
Write a pickled representation of
\var
{
obj
}
to the open file object
\var
{
file
}
. This is equivalent to
\code
{
Pickler(
\var
{
file
}
,
\var
{
protocol
}
,
\var
{
bin
}
).dump(
\var
{
obj
ect
}
)
}
.
\code
{
Pickler(
\var
{
file
}
,
\var
{
protocol
}
,
\var
{
bin
}
).dump(
\var
{
obj
}
)
}
.
If the
\var
{
protocol
}
parameter is om
m
itted, protocol 0 is used.
If the
\var
{
protocol
}
parameter is omitted, protocol 0 is used.
If
\var
{
protocol
}
is specified as a negative value
or
\constant
{
HIGHEST
_
PROTOCOL
}
,
the highest protocol version will be used.
...
...
@@ -211,11 +211,11 @@ This function automatically determines whether the data stream was
written in binary mode or not.
\end{funcdesc}
\begin{funcdesc}
{
dumps
}{
obj
ect
\optional
{
, protocol
\optional
{
, bin
}}}
\begin{funcdesc}
{
dumps
}{
obj
\optional
{
, protocol
\optional
{
, bin
}}}
Return the pickled representation of the object as a string, instead
of writing it to a file.
If the
\var
{
protocol
}
parameter is om
m
itted, protocol 0 is used.
If the
\var
{
protocol
}
parameter is omitted, protocol 0 is used.
If
\var
{
protocol
}
is specified as a negative value
or
\constant
{
HIGHEST
_
PROTOCOL
}
,
the highest protocol version will be used.
...
...
@@ -266,7 +266,7 @@ more details.}, \class{Pickler} and \class{Unpickler}:
This takes a file-like object to which it will write a pickle data
stream.
If the
\var
{
protocol
}
parameter is om
m
itted, protocol 0 is used.
If the
\var
{
protocol
}
parameter is omitted, protocol 0 is used.
If
\var
{
protocol
}
is specified as a negative value,
the highest protocol version will be used.
...
...
@@ -286,8 +286,8 @@ object that meets this interface.
\class
{
Pickler
}
objects define one (or two) public methods:
\begin{methoddesc}
[Pickler]
{
dump
}{
obj
ect
}
Write a pickled representation of
\var
{
obj
ect
}
to the open file object
\begin{methoddesc}
[Pickler]
{
dump
}{
obj
}
Write a pickled representation of
\var
{
obj
}
to the open file object
given in the constructor. Either the binary or
\ASCII
{}
format will
be used, depending on the value of the
\var
{
bin
}
flag passed to the
constructor.
...
...
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