T
TheSaint
Hi,
while testing my program I found some strange happening with pdb and pydb.
I like pydb because let me restart the program and nicer features, but if
errors pop up, then it will forget all variables (globals and locals gone).
I've to go for pdb because it isn't affected by that problem, but also in
some case pdb doesn't recognize a fix after a post-mortem restart. The funny
thing is that it shows the line corrected, but pdb execute the one it put in
memory.
However, I think also python shell has such flaw. I'd like to know how to
blank all current data and restart a program or re-import a corrected class
sentence.
Any other to try?
I'm also prone to use Ipython, but I still miss some learning how to run a
program within Ipython itself.
So if I do:
import myprogram
myprogram.__main__
Will it run? And then the other arguments from CLI, how do I pass them in?
--
Mailsweeper Home : http://it.geocities.com/call_me_not_now/index.html
while testing my program I found some strange happening with pdb and pydb.
I like pydb because let me restart the program and nicer features, but if
errors pop up, then it will forget all variables (globals and locals gone).
I've to go for pdb because it isn't affected by that problem, but also in
some case pdb doesn't recognize a fix after a post-mortem restart. The funny
thing is that it shows the line corrected, but pdb execute the one it put in
memory.
However, I think also python shell has such flaw. I'd like to know how to
blank all current data and restart a program or re-import a corrected class
sentence.
Any other to try?
I'm also prone to use Ipython, but I still miss some learning how to run a
program within Ipython itself.
So if I do:
import myprogram
myprogram.__main__
Will it run? And then the other arguments from CLI, how do I pass them in?
--
Mailsweeper Home : http://it.geocities.com/call_me_not_now/index.html