Issue210841
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.
Created on 2000-08-01 21:15 by anonymous, last changed 2022-04-10 16:02 by admin. This issue is now closed.
Messages (5) | |||
---|---|---|---|
msg790 - (view) | Author: Nobody/Anonymous (nobody) | Date: 2000-08-01 21:15 | |
Jitterbug-Id: 308 Submitted-By: jnc@ecs.soton.ac.uk Date: Fri, 28 Apr 2000 13:41:55 -0400 (EDT) Version: 1.5.2 OS: windows 98 Consider two scripts showbug.py ===== import bug1 bug1.bug() ===== and bug1.py ===== def bug(): print 'Bug 5' ===== both in the same directory. load showbug.py into idle (0.5) and runit with F5, the bug function prints Bug 5 Now change bug1.py outside or even with idle, save it. dates on disk now show bug1.py is newer than bug1.pyc rerun showbug.py pressing F5 or ctrl-F5 it still prints Bug 5. I dont think this behaviour is what is required.Certainly it cost me most of the afternoon tracking down non-existant problems in my code. John Carter ==================================================================== Audit trail: Mon May 22 17:23:04 2000 guido changed notes Mon May 22 17:23:04 2000 guido moved from incoming to request |
|||
msg791 - (view) | Author: Nobody/Anonymous (nobody) | Date: 2000-08-01 21:15 | |
From: Guido van Rossum <guido@python.org> Subject: Re: [Python-bugs-list] idle dosnt recompile modules changed externally (PR#308) Date: Fri, 28 Apr 2000 14:45:30 -0400 > Consider two scripts > > showbug.py > ===== > > import bug1 > > bug1.bug() > ===== > and bug1.py > ===== > def bug(): > print 'Bug 5' > ===== > > both in the same directory. > > load showbug.py into idle (0.5) and runit with F5, > > the bug function prints Bug 5 > > Now change bug1.py outside or even with idle, save it. > dates on disk now show bug1.py is newer than bug1.pyc > > rerun showbug.py pressing F5 or ctrl-F5 > > it still prints Bug 5. > > I dont think this behaviour is what is required.Certainly it cost me most > of the afternoon tracking down non-existant problems in my code. I appreciate the bug report. The current definitions of running a script and importing a module all conspire to get this behavior. We're working on a major change where IDLE executes your script in a separate process that is created from scratch each time you use [ctrl-]F5, and then it will go away. --Guido van Rossum (home page: http://www.python.org/~guido/) |
|||
msg792 - (view) | Author: Nobody/Anonymous (nobody) | Date: 2000-08-01 21:15 | |
This is all explainable, but I agree it's bad for the user. We'll fix it by running scripts in a new process. |
|||
msg793 - (view) | Author: Jeremy Hylton (jhylton) | Date: 2000-09-07 22:05 | |
Please do triage on this bug. |
|||
msg794 - (view) | Author: Fred Drake (fdrake) | Date: 2000-09-15 19:56 | |
Moved to PEP 42 as a feature request to be considered for a future (post 2.0) version. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-10 16:02:14 | admin | set | github: 32842 |
2000-08-01 21:15:30 | anonymous | create |