[Tutor] Could I modify codes and validateimmediately withoutrestart program?

Alan Gauld alan.gauld at btinternet.com
Fri May 27 20:18:13 CEST 2011


"Prasad, Ramit" <ramit.prasad at jpmchase.com> wrote

> It is not quite the same, but there are debuggers 
> (not sure about for Python) that will let you change the 
> *in memory* value of cc on the fly. 

Yes Pythons debugger can set a variable value during a 
break. But the OP wanted to do it in the source file not 
in memory.

> Of course, any code change will still not work.

And that was the problem.
And a reload() would restart the code from the start.

Alan G.



More information about the Tutor mailing list