Import Question

Matteo Boscolo matteo.boscolo at boscolini.eu
Wed Feb 20 16:01:01 EST 2013


Il 20/02/2013 21:53, eli m ha scritto:
> How long does it take for the program to import something? I am asking this because i have like 7 imports at the beginning of my program and i am thinking thats the reason why it is slow to start up. Thanks in advance.
It depend of your code module code..

if inside your module there is some code (no def or class) this code 
will be executed, and if for example you have some loop or some db query 
this will be executed too.


regards,
Matteo






More information about the Python-list mailing list