unpickle error

sosman news01 at metrak.KILLSPAM.com
Mon Jun 28 14:31:53 CEST 2004


After pickling several lists of objects using protocol 2, when I 
unpickle I get:
TypeError: ord() expected a character, but string of length 0 found

When I use protocol 0 (ascii) this doesn't occur.

Now it is almost certainly something I have stuffed up but it is not 
obvious to me how to debug this kind of problem.

When I mean pickling several lists, I open a file, call dump for each 
list of objects then close the file.  Similarly for unpickling.

-- 
brewiki: http://www.metrak.com/wiki/homebrew/



More information about the Python-list mailing list