Debugging a pickle

Jeffrey Barish jeff_barish at earthlink.net
Wed Jun 7 22:07:50 EDT 2006


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 the dump did
not write as much data as it should have.  Is that assumption correct?  Are
there any debugging techniques I can use to figure out what is going wrong?
-- 
Jeffrey Barish




More information about the Python-list mailing list