Import a lot of modules, or, import 'foo'
David N. Welton
dwelton at linuxcare.com
Fri Jul 30 21:31:28 EDT 1999
"Emile van Sebille" <emile at fenx.com> writes:
> Hi David,
>
> This seems to work for me:
>
> >>> for t in tests:
> exec ('import %s' % t)
Eewwwww, that's kind of twisted, but I guess if it works:-)
Thanks,
--
David N. Welton, Web Engineer, Linuxcare, Inc.
415.354.4878 x241 tel, 415.701.7457 fax
dwelton at linuxcare.com, http://www.linuxcare.com/
Linuxcare. At the center of Linux.
More information about the Python-list
mailing list