Pickles Cross-platform?
Coy Krill
ckrill at qvlinc.com
Fri Dec 8 19:06:46 EST 2000
Martin von Loewis wrote:
> Coy Krill <ckrill at qvlinc.com> writes:
>
> > I seem to have to run 'dos2unix' past any pickles that I want to read
> > that originated on our Windows machines. Is this typical? For some
> > reason I was under the impression that the unpickler handled the LF vs
> > CRLF contortions for you but it doesn't seem to be doing that.
>
> There shouldn't be any CR in a pickled file; just make sure you always
> open files in binary ('b') mode.
>
> Regards,
> Martin
I either didn't see that recommendation before or I had forgotten it. I'll
change to program right now. Been so long since I had to write a program
for DOS/Windows I had forgotten about opening the thing in binary mode! I
believe that's a good thing.
Thanks,
Coy
More information about the Python-list
mailing list