[Python-Dev] New and Improved Import Hooks

Martin v. Löwis martin@v.loewis.de
05 Dec 2002 13:21:45 +0100


"M.-A. Lemburg" <mal@lemburg.com> writes:

> Well, that's what I tried to solve in the sketch I posted earlier
> (slightly modified to meet Fredrik's requirements):
> 
> 1. User programs register import hooks based on suffixes which are
>     used to match the entries in sys.path, e.g. ".zip" for
>     ZIP importers (caching could help in improving the mapping
>     performance; this is where the auxilliary dictionary comes into
>     play).

I don't like this idea. How could I then make a HTTP importer, where
no suffix is available?

Regards,
Martin