[Tutor] Stacks and Stack underflow/Stack overflow
Steven D'Aprano
steve at pearwood.info
Sun Nov 20 01:09:40 CET 2011
Walter Prins wrote:
> pickle files are binary files and you probably opened it as a text file.
> See here: http://docs.python.org/py3k/library/functions.html#open
Not so. Pickle protocol 0 is text, and it happens to be the default
protocol used if you don't instruct it different. So by default, pickles
are text unless you specifically use a binary protocol.
--
Steven
More information about the Tutor
mailing list