python -i (interactive environment)

Joe JoeSalmeri at hotmail.com
Tue Mar 8 09:55:34 EST 2005


Found that out :-(

You can use the local=locals() option so at least you have access to the 
local variables, which in the case of debugging, is exactly what I needed.

Since -i gives you control at the end of the program the locals are already 
gone.

Seems like both approaches have their advantages depending on the situation.

"Steve Holden" <steve at holdenweb.com> wrote in message 
news:mailman.42.1110224680.1799.python-list at python.org...
> Unfortunately it does so in an entirely new namespace, thereby losing the 
> advantage of -i - namely, that you can investigate the program's namespace 
> after it's terminated.





More information about the Python-list mailing list