compiling module from string and put into namespace

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sat May 13 13:54:04 CEST 2006


glomde a écrit :
> Tanks but that isn't what I am looking for.
> I really want a function that you can call and imports
> the module into the calling functions namespace.

Please read the documentation of the __import__() *function*. (notice 
the double leading and ending underscores and the parenthesis).

> I dont want the caller to call import but a function.

Please read the documentation of the __import__() *function*. (notice 
the double leading and ending underscores and the parenthesis).






More information about the Python-list mailing list