[Tutor] Could I modify codes and validate immediately without restart program?
charlze at sohu.com
charlze at sohu.com
Fri May 27 06:46:00 CEST 2011
Hi, guys. Here is a demo program like this:
aa = 3
bb = 4
cc = 53
dd = 6
print cc
I put a breakpoint at the first line, then debug the program. After 'aa' is set to '3', I modify '53' in the 3rd line to '34', then save the source file and run remain codes. As expected, the output is '53'.
Does python has the ability to set cc to 34 after file savings without restarting whole program? I heard LISP has this ability and wonder how could it achieve this.
Thanks!
More information about the Tutor
mailing list