recover pickled data: pickle data was truncated

Chris Angelico rosuav at gmail.com
Wed Dec 29 13:24:14 EST 2021


On Thu, Dec 30, 2021 at 4:32 AM iMath <redstone-cold at 163.com> wrote:
>
> > You have lost the data in that case.
>
> 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.

Unless two conflicting versions got interleaved, in which case I
strongly advise you NOT to try unpickling it.

If you really feel like delving into it, try manually decoding the
pickle stream, but be very careful.

ChrisA


More information about the Python-list mailing list