[Tutor] __import__()

Pete pkoek11 at xs4all.nl
Thu Sep 23 17:26:45 CEST 2010


Hiya,

still working on my plugin architecture. I figured out how to import modules of which I don't know the name yet at compile time,
by using __import__() instead of import.

So that works fine when I want to have the equivalent of 

import spam

... by using

__import__('spam')

Question:

what is the equivalent of

from spam import *

?

thanks,

Pete


More information about the Tutor mailing list