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: 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 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: In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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