On Fri, Jan 20, 2012 at 22:04, Dmitry Popov
<dmitry.po...@hpcat.aps.anl.gov>wrote:

> In other words the question is whether IDLE command Run Module (or F5) is
> equivalent to start of Python from command line using the following
> command: python  –i  filename.py?****
>
>
Yes, indeed.
You can directly inspect variables / call functions defined in the module,
etc.  And if there is an exception, you can:
 >>> import pdb; pdb.pm()
to debug it "post mortem".

Note that every time you press F5, it kill the previous Python, and re-runs
the file in a new python, so you'll lose all state from the previous run.
(But the history and output is retained until you exit IDLE.)

-- 
Beni Cherniavsky-Paskin <c...@users.sf.net>
_______________________________________________
IDLE-dev mailing list
IDLE-dev@python.org
http://mail.python.org/mailman/listinfo/idle-dev

Reply via email to