cPickle
Oleg Broytmann
phd at phd.pp.ru
Tue Oct 23 06:13:52 EDT 2001
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