[Python-Dev] New and Improved Import Hooks

Samuele Pedroni pedronis@bluewin.ch
Tue, 3 Dec 2002 17:05:24 +0100


From: "Moore, Paul" <Paul.Moore@atosorigin.com>

>That's great news, as I've said before. Can I ask that you
>consider a few issues, though. I don't have particular use cases
>in mind, but I believe that PEP 273 had a number of implicit
>assumptions, which your proposal does not incorporate. I'd like
>to make the differences explicit, just so that people get a
>chance to comment on whether they care.
>
>1. Your import hooks seem to act at a level "above" sys.path,
>   in the sense that the normal sys.path search becomes just
>   another hook. With that in mind, I don't see a way for a user
>   to add a zipfile in the *middle* of sys.path.

It is worth to notice that Jython 2.1 already implement more or less PEP 273
approach, allowing to add zipfiles to sys.path.

We can live with a different/new approach and then plan a migration path with
warning etc, but if that could be avoided it would be nice.

regards.