Re: Resuming a program's execution after correcting error

2006-10-05 Thread Scott David Daniels
Henning Hasemann wrote: > Sheldon wrote: ... >> 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

Re: Resuming a program's execution after correcting error

2006-10-05 Thread Henning Hasemann
Sheldon wrote: > MRAB wrote: >> Sheldon wrote: >>> MRAB wrote: 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 e

Re: Resuming a program's execution after correcting error

2006-10-04 Thread Sheldon
MRAB wrote: > Sheldon wrote: > > MRAB wrote: > > > 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 every

Re: Resuming a program's execution after correcting error

2006-10-03 Thread hanumizzle
On 3 Oct 2006 16:58:17 -0700, MRAB <[EMAIL PROTECTED]> wrote: > > I like your idea Matthew but I don't know how to pickle the many > > variables in one file. Do I need to pickle each and every variable into > > a seperate file? > > var1,var2 > > pickle.dump(var1,f) > > pickle.dump(var2,f2) > > > U

Re: Resuming a program's execution after correcting error

2006-10-03 Thread MRAB
Sheldon wrote: > MRAB wrote: > > 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 w

Re: Resuming a program's execution after correcting error

2006-10-03 Thread Sheldon
MRAB wrote: > 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 > >

Re: Resuming a program's execution after correcting error

2006-10-03 Thread Sheldon
MonkeeSage wrote: > Georg Brandl wrote: > > As I said before, this can be done by finding out where the error is raised, > > what the cause is and by inserting an appropriate try-except-statement in > > the code. > > I could be mistaken, but I *think* the OP is asking how to re-enter the > stack a

Re: Resuming a program's execution after correcting error

2006-09-28 Thread MRAB
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

Re: Resuming a program's execution after correcting error

2006-09-28 Thread MonkeeSage
Georg Brandl wrote: > As I said before, this can be done by finding out where the error is raised, > what the cause is and by inserting an appropriate try-except-statement in > the code. I could be mistaken, but I *think* the OP is asking how to re-enter the stack at the same point as the exceptio

Re: Resuming a program's execution after correcting error

2006-09-28 Thread Jay
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

Re: Resuming a program's execution after correcting error

2006-09-28 Thread Dan Bishop
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

Re: Resuming a program's execution after correcting error

2006-09-28 Thread Tuomas
Sheldon wrote: > 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

Re: Resuming a program's execution after correcting error

2006-09-28 Thread Georg Brandl
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

Resuming a program's execution after correcting error

2006-09-28 Thread Sheldon
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 recalcu