From: dozier at bellatlantic.net (Bill Dozier)
Date: Thu, 22 Apr 1999 09:25:02 -0400
Subject: unpickling an NT object in Solaris?
References: <dozier-2004991057490001@client-151-200-124-68.bellatlantic.net> <dozier-2004991758490001@client-151-200-124-149.bellatlantic.net> <5lzp42smtd.fsf@eric.cnri.reston.va.us>
Message-ID: <dozier-2204990925020001@client-151-200-124-21.bellatlantic.net>
X-UID: 591                                                  

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.




