On Thu, Sep 23, 2010 at 5:26 PM, Pete <pkoe...@xs4all.nl> wrote: > 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 * >
may be function = getattr(spam, function_name) J. > ? > > thanks, > > Pete > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor