[Python-Dev] Towards a Python based import scheme
Greg Stein
gstein@lyra.org
Thu, 16 Sep 1999 05:00:06 -0700
Gordon McMillan wrote:
>...
> def _reload_hook(self, module):
> # gmcm - Hmmm, reloading of a module may or may not
> be impossible,
> # (depending on the importer), but at least we can
> # look to see if it's ours to reload:
> if hasattr(module, '__importer__'):
> if getattr(module, '__importer__') == self:
> raise SystemError, "reload not yet implemented"
> return self.__chain_reload(module)
I've folded this in (finally).
New imputil.py to be published in a bit...
thx!
-g
--
Greg Stein, http://www.lyra.org/