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/030754.html below:

[Python-Dev] New and Improved Import Hooks

[Python-Dev] New and Improved Import Hooks [Python-Dev] New and Improved Import HooksDavid Ascher DavidA@ActiveState.com
Wed, 04 Dec 2002 15:49:34 -0800
Samuele Pedroni wrote:

> I would it support this kind of code:
>
> sys.path = L
> L.append(...) ?

Sure -- sys.path wouldn't be a "real" list object, just one that behaved as one.

Just:

 > How is this different (besides being more complex <wink>) from making
 > import hooks string subclasses?

It doesn't require the import hook to be a string subclass, which you said was 
hard to do if the import hook is to be written in C.  If making it easy to 
write a C import hook isn't a requirement anymore, let me know!

--david




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