Pickled text file causing ValueError (dos/unix issue)

Tim Peters tim.peters at gmail.com
Fri Jan 14 15:56:40 EST 2005

[Tim Peters]
>>Yes:  regardless of platform, always open files used for pickles
>> in binary mode. ...

[John Machin]
> Tim, the manual as of version 2.4 does _not_ mention the need
> to use 'b' on OSes where it makes a difference, not even in the
> examples at the end of the chapter. Further, it still refers to
> protocol 0 as 'text' in several places. There is also a reference to
> protocol 0 files being viewable in a text editor.
> In other words, enough to lead even the most careful Reader of
> TFM up the garden path :-)

Take the next step:  submit a patch with corrected text.  I'm not paid
to work on the Python docs either <0.5 wink>.  (BTW, protocol 0 files
are viewable in a text editor regardless, although the line ends may
"look funny")

More information about the Python-list mailing list