Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ee6a70

Browse files
committed
[Patch #999280 ] Update kwargs in pickle docs to match implementations
1 parent 4eb1a00 commit 2ee6a70

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Doc/lib/libpickle.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ \subsection{Usage}
170170
The \module{pickle} module provides the
171171
following functions to make this process more convenient:
172172

173-
\begin{funcdesc}{dump}{object, file\optional{, protocol\optional{, bin}}}
174-
Write a pickled representation of \var{object} to the open file object
173+
\begin{funcdesc}{dump}{obj, file\optional{, protocol\optional{, bin}}}
174+
Write a pickled representation of \var{obj} to the open file object
175175
\var{file}. This is equivalent to
176-
\code{Pickler(\var{file}, \var{protocol}, \var{bin}).dump(\var{object})}.
176+
\code{Pickler(\var{file}, \var{protocol}, \var{bin}).dump(\var{obj})}.
177177

178-
If the \var{protocol} parameter is ommitted, protocol 0 is used.
178+
If the \var{protocol} parameter is omitted, protocol 0 is used.
179179
If \var{protocol} is specified as a negative value
180180
or \constant{HIGHEST_PROTOCOL},
181181
the highest protocol version will be used.
@@ -211,11 +211,11 @@ \subsection{Usage}
211211
written in binary mode or not.
212212
\end{funcdesc}
213213

214-
\begin{funcdesc}{dumps}{object\optional{, protocol\optional{, bin}}}
214+
\begin{funcdesc}{dumps}{obj\optional{, protocol\optional{, bin}}}
215215
Return the pickled representation of the object as a string, instead
216216
of writing it to a file.
217217

218-
If the \var{protocol} parameter is ommitted, protocol 0 is used.
218+
If the \var{protocol} parameter is omitted, protocol 0 is used.
219219
If \var{protocol} is specified as a negative value
220220
or \constant{HIGHEST_PROTOCOL},
221221
the highest protocol version will be used.
@@ -266,7 +266,7 @@ \subsection{Usage}
266266
This takes a file-like object to which it will write a pickle data
267267
stream.
268268

269-
If the \var{protocol} parameter is ommitted, protocol 0 is used.
269+
If the \var{protocol} parameter is omitted, protocol 0 is used.
270270
If \var{protocol} is specified as a negative value,
271271
the highest protocol version will be used.
272272

@@ -286,8 +286,8 @@ \subsection{Usage}
286286

287287
\class{Pickler} objects define one (or two) public methods:
288288

289-
\begin{methoddesc}[Pickler]{dump}{object}
290-
Write a pickled representation of \var{object} to the open file object
289+
\begin{methoddesc}[Pickler]{dump}{obj}
290+
Write a pickled representation of \var{obj} to the open file object
291291
given in the constructor. Either the binary or \ASCII{} format will
292292
be used, depending on the value of the \var{bin} flag passed to the
293293
constructor.

0 commit comments

Comments
 (0)