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/2003-April/034815.html below:

[Python-Dev] Hook Extension Module Import?

[Python-Dev] Hook Extension Module Import?Michael Hudson mwh@python.net
Sun, 20 Apr 2003 21:32:43 +0100
Aahz <aahz@pythoncraft.com> writes:

>> OTOH, it's not obvious to me why this should be so.  Can't I
>> access/replace builtins.__import__ from C/C++?
>
> Sure, but then you need to replace import.c, just as it says.

Not in this case: if all you want is notification, surely you can call
the original __import__ to do the work...

Cheers,
M.

-- 
  In many ways, it's a dull language, borrowing solid old concepts
  from many other languages & styles:  boring syntax, unsurprising
  semantics, few  automatic coercions, etc etc.  But that's one of
  the things I like about it.                 -- Tim Peters, 16 Sep 93



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