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

Skip to content

Commit 4a72a19

Browse files
committed
Remove obsolete note on binary-mode vs. text-mode file.
1 parent 446f7ff commit 4a72a19

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

Doc/library/pickle.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,6 @@ an unpickler, then you call the unpickler's :meth:`load` method. The
130130
The highest protocol version available. This value can be passed as a
131131
*protocol* value.
132132

133-
.. note::
134-
135-
Be sure to always open pickle files created with protocols >= 1 in binary mode.
136-
For the old ASCII-based pickle protocol 0 you can use either text mode or binary
137-
mode as long as you stay consistent.
138-
139-
A pickle file written with protocol 0 in binary mode will contain lone linefeeds
140-
as line terminators and therefore will look "funny" when viewed in Notepad or
141-
other editors which do not support this format.
142-
143133
.. data:: DEFAULT_PROTOCOL
144134

145135
The default protocol used for pickling. May be less than HIGHEST_PROTOCOL.

0 commit comments

Comments
 (0)