[Idle-dev] Definitions in a script for the IDLE shell

Beni Cherniavsky-Paskin cben at users.sf.net
Sat Jan 28 20:36:39 CET 2012

On Fri, Jan 20, 2012 at 22:04, Dmitry Popov
<dmitry.popov at 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 <cben at users.sf.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/idle-dev/attachments/20120128/ba440bf3/attachment.html>

More information about the IDLE-dev mailing list