[Import-sig] Re: Long-awaited imputil comments
Gordon McMillan
gmcm@hypernet.com
Wed, 16 Feb 2000 15:43:53 -0500
[Guido]
> > > I think we need a hook here so that Marc-Andre can implement
> > > walk-me-up-Scotty; or Tim Peters could implement a policy that
> > > requires all imports to use the full module name, even from
> > > within the same package.
Hmm, after thinking about it, I can't see these as "import
hooks". At least, if you are installing these system-wide,
these are changing the semantics of "import", not grabbing
code from strange places, or transforming .xyz files into
Python or ...
I can have working code; now add some mxX or TP extension
and have existing code (not using the new extension) break.
OTOH, if MAL / TP provides an importer, and fixes that
importer to follow their preferred policy, that's fine; and I can
pretend that that's an "import hook".
- Gordon