unpickling an NT object in Solaris?
Bill Dozier
dozier at bellatlantic.net
Thu Apr 22 09:25:02 EDT 1999
In article <5lzp42smtd.fsf at eric.cnri.reston.va.us>, Guido van Rossum
<guido at eric.cnri.reston.va.us> wrote:
>dozier at bellatlantic.net (Bill Dozier) writes:
>>
>> The text mode of pickling is not cross-platform and seems to expect UNIX
>> linefeeds. :P
>
>Nonsense. However you must open the file you're pickling to in binary
>mode: open(filename,'wb').
>
Unfortunately, this detail is not found in the documentation. It certainly
does not seem obvious that one should write a text file in binary mode.
More information about the Python-list
mailing list