recover a partly destroyed pickled structure
maurizio437 at hotmail.com
Sat Sep 25 19:06:01 CEST 2004
I have (my mistake) overwritten the beginning of a file where a long
dictionary was pickled with another (pickled and much smaller) dictionary.
Since only 10% or so of the original and important data was overwritten, I
would be happy if I could somehow recover at least the part that I can
The situation is now the following. If I open the file in vi I can see :
ss. #after that line starts the data I need
....# all data is here until the end
# end of old important data
Can anybody give an indication on how to do that? I tried to understand
how pickle puts these numbers on the different fields and remove the
unimportant beginning of the file to replace it with something that would
allow to unpickle the data, but did not really succeed. Read the
source (and understand it) is far beyond my python skills...
Any hint or pointer would be appreciated.
More information about the Python-list