[Python-Dev] New and Improved Import Hooks

Just van Rossum just@letterror.com
Wed, 4 Dec 2002 16:18:46 +0100


Moore, Paul wrote:

> From: Just van Rossum [mailto:just@letterror.com]
> > I think this is more or less the same as iu.py,
> > except that there's no need for a "shadowpath"
> 
> Thinking further, what is the advantage of your code
> over iu.py, if this is true?

Simplicity. I suspect that the shadowpath is only needed if sys.path items must
be strings. I could be wrong, though.

And it's more or less what Jython does, which is nice. It's simple and works
well. (Samuele: pls correct me if I'm wrong ;-)

> Performance? Do you have figures?

No and no ;-)

(Later, later: the new hook already works, now I need to get a proof-of-concept
of zipimport going.)

Just