[Pythonmac-SIG] MacPython IDE doesn't reload edited files

Jack Jansen Jack.Jansen@cwi.nl
Mon, 08 Mar 1999 18:07:46 +0100


Recently, Just van Rossum <just@letterror.com> said:
> 
> >or even keep a complete administration (a list of tuples
> >(modulename, filename, modificationtime), sorted by order of import),
> >and quickly run through this when the user "run"s reloading everything
> >from the first changed module.
> 
> That doesn't fix the problem of non-changed modules which *do* need a reload.
> ..

Hmm, that depends on the order in which you keep the list. If you add
a hook to the import mechanism, and in that hook add a module to your
administration _when the import finishes_ then reloading everything
for which the import finished after the module that was changed should 
do the trick, no? A module whose import was over and done before the
changed module was imported can't be affected by it, after all...
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@cwi.nl      | ++++ if you agree copy these lines to your sig ++++
http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm