Re: Resuming a program's execution after correcting error
- From: "Dan Bishop" <danb_83@xxxxxxxxx>
- Date: 28 Sep 2006 10:29:23 -0700
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.
Afaik, the best you can do is run the script with "python -i", which
will give you an interactive prompt from which you have access to the
module-level variables. Or even better, test your script with small
data sets, and do the real calculations only after you've fixed any
obvious bugs.
.
- References:
- Resuming a program's execution after correcting error
- From: Sheldon
- Resuming a program's execution after correcting error
- Prev by Date: Re: Resuming a program's execution after correcting error
- Next by Date: Re: Questions on Using Python to Teach Data Structures and Algorithms
- Previous by thread: Re: Resuming a program's execution after correcting error
- Next by thread: Re: Resuming a program's execution after correcting error
- Index(es):
Relevant Pages
|