[Tutor] about importing a module

Tiger12506 keridee at jayco.net
Fri Jul 20 00:26:49 CEST 2007

If the module has been imported before your code is run, it will be the 
library module (very important if working in IDLE which importants many 
modules, for example). But if it has not been imported before, the module in 
the current directory is imported first. You can check if a module has been 
imported previously by checking if in sys.modules.


More information about the Tutor mailing list