How to hook import?

Dirk-Ulrich Heise hei at adtranzsig.de
Thu Jul 20 04:37:21 EDT 2000


A question to the Developers:

What's the official way to overload the behaviour
of import()? I've searched the python website and
find lots of hits regarding __import__() and
"imputils" and more, more than i can read. ´
What's the future way of
doing this, i mean, from 1.6a1 upwards?

(I'd like to preprocess Python files when importing;
for some rather crazy idea i can't speak out
because maybe it won't be useful at all)

--
Dipl.Inform. Dirk-Ulrich Heise
hei at adtranzsig.de
dheise at debitel.net







More information about the Python-list mailing list