unpickle from URL problem
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Wed Oct 10 13:03:04 EDT 2007
On Wed, 10 Oct 2007 15:21:06 +0000, Alan Isaac wrote:
> Marc 'BlackJack' Rintsch wrote:
>> Pickles are *binary* files, not text files
>
> Actually not:
> http://docs.python.org/lib/node316.html
>
> These were created with protocol 0.
Actually yes, the docs are wrong. It's a binary file with bytes
constraint to ASCII values. Nevertheless it breaks if you don't open the
files in binary mode and try to use it on a platform that treats line
endings differently.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list