[Python-Dev] New and Improved Import Hooks
Fredrik Lundh
fredrik@pythonware.com
Fri, 6 Dec 2002 10:54:18 +0100
Paul Moore wrote:
>=20
> I just tried this out. As far as I can see, iu works perfectly
> with a simple getmod() method. Why does your patch require
> find_module() and load_module()?
>=20
> I'm not criticising, just trying to understand the
> requirements... (Anything to make writing an import hook
> easier!!!)
the internal import architecture does things in two steps, for
some reason. this is also reflected in the public "imp" module
interface:
http://www.python.org/doc/2.2.2/lib/module-imp.html
I'm not sure how Just's patch interacts with "imp", so maybe
this is a non-issue. =20
</F>