A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-February/033374.html below:

[Python-Dev] when is binary mode required for pickle?

[Python-Dev] when is binary mode required for pickle? [Python-Dev] when is binary mode required for pickle?Tim Peters tim_one@email.msn.com
Wed, 12 Feb 2003 22:36:59 -0500
Let me simplify this:  if you want a surprise-free and portable life, always
open pickle files in binary mode, regardless of pickling module (pickle or
cPickle), platform, pickle protocol, or whether reading or writing.

And, yes, the docs could be clearer about this.

The downside is that proto 0 (text mode) pickles "look funny" in Notepad on
Windows if written to a file opened in binary mode (they don't have the \r\n
line endings then that Notepad expects).




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4