Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39378

Re: Import Question

Date 2013-02-20 22:01 +0100
From Matteo Boscolo <matteo.boscolo@boscolini.eu>
Organization OmniaSolutions
Subject Re: Import Question
References <c5a35a50-320e-4c1f-a825-c80becd9d20f@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2127.1361394133.2939.python-list@python.org> (permalink)

Show all headers | View raw


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


Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Import Question eli m <techgeek201@gmail.com> - 2013-02-20 12:53 -0800
  Re: Import Question Matteo Boscolo <matteo.boscolo@boscolini.eu> - 2013-02-20 22:01 +0100
  Re: Import Question Michael Herman <hermanmu@gmail.com> - 2013-02-20 13:03 -0800
  Re: Import Question Dave Angel <davea@davea.name> - 2013-02-20 16:23 -0500

csiph-web