Basic importing question

Hussein B hubaghdadi at gmail.com
Wed Aug 20 06:08:59 EDT 2008


Hey,
Suppose I have a Python application consists of many modules (lets say
it is a Django application).
If all the modules files are importing sys module, how many times the
sys module will be compiled and executed?
Only once (the first time the PVM locates, compiles and executes the
sys module)? or once for each module importing sys?
Thanks.



More information about the Python-list mailing list