windows to linux pickled objects?
Oleg Broytmann
phd at phd.pp.ru
Wed Nov 28 04:32:50 EST 2001
On Tue, Nov 27, 2001 at 11:05:08PM -0600, Stephen Boulet wrote:
> I pickled a list in windows but couldn't open it in linux without first
> running the handy dos2unix program on it.
Always write binary data to binary files:
outfile = open(filename, 'wb')
outfile.write(pickle)
outfile.close()
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