Re: Debugging a pickle

2006-06-08 Thread Jeffrey Barish
Steve Holden wrote: > First of all, verify that you are opening the file in binary mode. Not > doing this is the biggest cause of problems for Windows users, which the > intermittent failure makes me suspect you may be. > > regards > Steve Right on all counts. I am on Windows and I was not op

Re: Debugging a pickle

2006-06-07 Thread Steve Holden
Jeffrey Barish wrote: > I use cPickle to serialize some data so that I can read it back later. It > works sometimes, but other times I get an EOFError at the > > data = cPickle.load(fileobj) > > statement. I assume that this error indicates that cPickle is not able to > retrieve as much data fr

Debugging a pickle

2006-06-07 Thread Jeffrey Barish
I use cPickle to serialize some data so that I can read it back later. It works sometimes, but other times I get an EOFError at the data = cPickle.load(fileobj) statement. I assume that this error indicates that cPickle is not able to retrieve as much data from the file as it expects -- or that