[Python-Dev] Hook Extension Module Import?

David Abrahams dave@boost-consulting.com
Sun, 20 Apr 2003 11:07:24 -0400


Hi,

I think I need a way to temporarily (from 'C'), arrange to be notified
just before and just after a new extension module is loaded.  Is this
possible?  I didn't see anything obvious in the source.  BTW, I'd be
just as happy if it were possible to do the same thing for any module
(i.e., not discriminating between extension and pure python modules).

Thanks in advance,
Dave

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com