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.

JS 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to