This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cben
Recipients cben, kbk, samwyse
Date 2010-08-16.00:38:34
SpamBayes Score 9.677853e-11
Marked as misclassified No
Message-id <1281919118.43.0.429531361114.issue6321@psf.upfronthosting.co.za>
In-reply-to
Content
> As it happens, I do use Windows and almost exclusively start IDLE via right-clicks on .py files. I've never seen the behavior you describe documented anywhere.

You're right, it wasn't.
[IDLE does show a "==== No Subprocess ====" line in the IDLE shell when you launch it this way.  Unfortunately, the significance of this (and of the absence of "====== Restart ======" lines on F5) wouldn't be obvious unless you followed IDLE development around 2.3... :-(]

If you're using Python up to 2.6/3.0, please fall back to starting IDLE from the Start menu → Programs → Python X.Y → IDLE, then use File→Open to open files.

Or upgrade to Python 2.7/3.1, where right click → Edit with IDLE was fixed [issue5847] to open IDLE in the fully-functional mode.  Note however, that once you have an open IDLE, still want to use File→Open or you'll get *2* IDLEs running at once, each with its own shell.

In both cases you'll notice IDLE will *completely* restart the underlying Python each time you press F5.  This eliminates any stale-module problems, but kills all variables and state you had; this might require a change of habits but in my experience it's well worth it.

[P.S. If you absolutely must have module reloading without killing the whole state, and you're willing to debug occasional issues, take a look at http://www.cherrypy.org/attachment/wiki/AutoReload/autoreload.py
and possibly http://www.codexon.com/posts/a-better-python-reload]
History
Date User Action Args
2010-08-16 00:38:39cbensetrecipients: + cben, kbk, samwyse
2010-08-16 00:38:38cbensetmessageid: <1281919118.43.0.429531361114.issue6321@psf.upfronthosting.co.za>
2010-08-16 00:38:36cbenlinkissue6321 messages
2010-08-16 00:38:34cbencreate