[Python-Dev] New and Improved Import Hooks (original) (raw)

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