Pickles Cross-platform?
Martin von Loewis
loewis at informatik.hu-berlin.de
Fri Dec 8 15:57:12 EST 2000
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
More information about the Python-list
mailing list