cPickle

Armin Steinhoff Armin_member at newsguy.com
Thu Oct 25 12:52:06 CEST 2001


Oleg,

thanks a lot for that hint ... it's working now :)

Armin



In article <mailman.1003832122.11295.python-list at python.org>, Oleg says...
>
>On Tue, Oct 23, 2001 at 02:23:07AM -0700, Armin Steinhoff wrote:
>> are there any know problems with cPickle which does prevent reading of a
>> 'pickled' file from a Windows machine on a machine with an other operating
>> system ??
>>  (e.g. QNX6) 
>> 
>> Any ideas about the reasons ??
>
>   On <rant>broken</rant> Windows OS you must open binary files in binary
>modes (and cPickle fies are binary):
>
>   infile = open(filename, 'rb')
>   outfile = open(filename, 'wb')



>
>Oleg.
>-- 
>     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
>           Programmers don't die, they just GOSUB without RETURN.
>




More information about the Python-list mailing list