Debugging a pickle

J

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 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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top