A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-December/030685.html below:

[Python-Dev] New and Improved Import Hooks

[Python-Dev] New and Improved Import Hooks [Python-Dev] New and Improved Import HooksJust van Rossum just@letterror.com
Tue, 3 Dec 2002 18:10:09 +0100
Moore, Paul wrote:

> Perhaps you could refactor your implementation so that the
> cache isn't just for zipfiles? (I can easily imagine other
> extensions that would benefit - tarfiles, metakit databases,
> imports over the web, ...)

The directory listing is the hardest part and can't be general; caching is as
simple as using a dict. I think it's the responsibility of the import hook.

Btw. I could provide a zip import hook that's not specific to one archive, but
rather searches sys.path for zip files. I'll play with that.

Just



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4