[Pythonmac-SIG] using IDLE and changing variables
Christopher Smith
csmith@blakeschool.org
Sat, 28 Jul 2001 13:23:48 -0500
Hi,
One thing that has been discussed recently on Tutor is the fact that
when you make changes to a module that you are importing, the changes
won't be recognized unless you force a reload e.g., reload(mylibs).
So the reload() takes care of that. My question concerns now the
change of variables within a definition/program.
Let's say at one point you had a variable x defined and you used it
in several places. Then you change the variable from x to y but forget
to change it everywhere. IDLE (at least from what I've seen) does not
warn about the uninitialized variable. Is this just
tough-luck-you-should-have-used-find-and-replace or is there some way
to make sure this doesn't happen (other than quitting and restarting)?
I guess what I'm looking for is something like BASIC's "new" command that
flushes out everything of the session and begins fresh.
/c