Resuming a program's execution after correcting error

Jay jaysherby at gmail.com
Thu Sep 28 14:14:58 EDT 2006


I don't know how much help this is going to be, but you could store
values in a temporary file on the hard disk and write checkpoints to
read in the data and begin from a point somewhere in the middle of the
script.

Sheldon wrote:
> Hi.
>
> Does anyone know if one can resume a python script at the error point
> after the error is corrected?
> I have a large program that take forever if I have to restart from
> scratch everytime. The error was the data writing a file so it seemed
> such a waste if all the data was lost and must be recalculated again.
> 
> Sincerely,
> Sheldon




More information about the Python-list mailing list