Importing in a loop is definitely not a good idea. I found this great guide about Python performance, including information about importing, lazy imports, and other issues: http://wiki.python.org/moin/PythonSpeed/PerformanceTips#Import_Statement_Overhead
Maybe it should be (at least partly) added to the Developer's Guide. I might do it when I have time. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org