[Python-Dev] New and Improved Import Hooks

Gordon McMillan gmcm@hypernet.com
Thu, 5 Dec 2002 12:01:47 -0500


On 5 Dec 2002 at 15:41, Samuele Pedroni wrote:

> > Gordon McMillan wrote:
> >
> > > Here's what iu.py does:

[...]

> what about __path__'s role in this picture (btw this
> is not a rhetoric question)? 

In iu, __path__ is (by default) treated just like
a "local" sys.path. In fact, you *could* say that
sys.path is just the __path__ of the package-with-no-name.

BTW, iu does allow non string objects in sys.path.
If it exposes "getmod(name)", that will be tried
in preference to iu's own machinery.

-- Gordon
http://www.mcmillan-inc.com/