recover pickled data: pickle data was truncated

Marco Sulla Marco.Sulla.Python at gmail.com
Wed Dec 29 14:12:24 EST 2021


On Wed, 29 Dec 2021 at 18:33, iMath <redstone-cold at 163.com> wrote:
> But I found the size of the file of the shelve data didn't change much, so I guess the data are still in it , I just wonder any way to recover my data.

I agree with Barry, Chris and Avi. IMHO your data is lost. Unpickling
it by hand is a harsh work and maybe unreliable.

Is there any reason you can't simply add a semaphore to avoid writing
at the same time and re-run the code and regenerate the data?


More information about the Python-list mailing list