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


Groups > comp.lang.python > #39378

Re: Import Question

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <matteo.boscolo@boscolini.eu>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'executed': 0.07; 'subject:Question': 0.07; 'thats': 0.07; 'imports': 0.09; 'def': 0.10; 'advance.': 0.15; 'class)': 0.16; 'executed,': 0.16; 'from:addr:boscolini.eu': 0.16; 'from:addr:matteo.boscolo': 0.16; 'from:name:matteo boscolo': 0.16; 'module': 0.19; 'import': 0.21; 'example': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'received:192.168.1.3': 0.29; 'query': 0.30; 'up.': 0.31; 'code': 0.31; 'asking': 0.32; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'too.': 0.35; 'there': 0.35; 'does': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'received:62': 0.62; 'subject:Import': 0.84; 'eli': 0.93
Date Wed, 20 Feb 2013 22:01:01 +0100
From Matteo Boscolo <matteo.boscolo@boscolini.eu>
Organization OmniaSolutions
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version 1.0
To python-list@python.org
Subject Re: Import Question
References <c5a35a50-320e-4c1f-a825-c80becd9d20f@googlegroups.com>
In-Reply-To <c5a35a50-320e-4c1f-a825-c80becd9d20f@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2127.1361394133.2939.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361394133 news.xs4all.nl 6874 [2001:888:2000:d::a6]:56221
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:39378

Show key headers only | 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