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
69774c21
Commit
69774c21
authored
Feb 20, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1102649: add a note to pickle docs that pickle files should be
opened in binary mode.
parent
9b743f51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Doc/lib/libpickle.tex
Doc/lib/libpickle.tex
+10
-1
No files found.
Doc/lib/libpickle.tex
View file @
69774c21
...
...
@@ -163,8 +163,17 @@ as a \var{protocol} value.
\versionadded
{
2.3
}
\end{datadesc}
\note
{
Be sure to always open pickle files created with protocols >= 1 in
binary mode. For the old ASCII-based pickle protocol 0 you can use
either text mode or binary mode as long as you stay consistent.
A pickle file written with protocol 0 in binary mode will contain
lone linefeeds as line terminators and therefore will look ``funny''
when viewed in Notepad or other editors which do not support this
format.
}
The
\module
{
pickle
}
module provides the
following functions to make th
is
process more convenient:
following functions to make th
e pickling
process more convenient:
\begin{funcdesc}
{
dump
}{
obj, file
\optional
{
, protocol
}}
Write a pickled representation of
\var
{
obj
}
to the open file object
...
...
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