> I was trying to eval("import %s" % something).
>
> exec("import %s" % something) works just fine and now I understand
why.But much better to use the __import__() function for doing that if possible... Or simply importing all the modules you might need at the beginning, its not a big overhead... Alan G. _______________________________________________ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor
