Unpickling crashing my machine
Pierre-Frédéric Caillaud
peufeu at free.fr
Fri Jul 30 14:03:14 EDT 2004
OK ! Thanks a lot for this info.
> Correct. If each object dumped is independent of all the other objects
> being dumped you should clear the memo after each dump() call in the
> second
> case:
>
> p = cPickle.Pickler( myfile, -1 )
> for object in objects :
> p.dump( object )
> p.memo_clear()
>
> The first case doesn't suffer from this problem because each call to
> cPickle.dump() creates a new Pickler, and thus a new memo.
>
> Skip
More information about the Python-list
mailing list