[Python-Dev] New and Improved Import Hooks

Just van Rossum just@letterror.com
Tue, 3 Dec 2002 22:20:57 +0100


Samuele Pedroni wrote:

> No jython accepts strings of the form *.zip in sys.path, that are
> converted upon scanning on import  to string subclasses' instances
> with the same value as string, through which import happens using an
> internal interface implemented by these string subclasses.
> 
> We also set __path__s to contain things of the form *.zip/rel/path/to/package.

And these package __path__s are _also_ "import hook" string subclasses, right?
That makes an awful lot of sense.

Just