Path: csiph.com!usenet.pasdenom.info!news.albasani.net!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'example:': 0.03; 'subject:Question': 0.07; 'thats': 0.07; 'python': 0.09; '[name': 0.09; 'imports': 0.09; 'cc:addr:python-list': 0.10; 'advance.': 0.15; '"import': 0.16; 'varies': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'feb': 0.19; 'email addr:gmail.com>': 0.20; 'import': 0.21; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'time:': 0.29; 'url:mailman': 0.29; 'up.': 0.31; 'asking': 0.32; 'url:python': 0.32; 'url:listinfo': 0.32; 'loading': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'url:org': 0.36; 'does': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'url:mail': 0.40; '20,': 0.65; '2013': 0.84; 'subject:Import': 0.84; 'eli': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=5G5fdHrljiHIbj2IzggpGcRSSq9p7LYuagmClf6GFcw=; b=yS+T1mDB11BMuVXyf1YwnEROclsey2CrQmgMDKxqMcAGUYb5Vbm8bAost4TXOFAGC6 /hN/9B+SvFusAslpBc+SBtEfRNSIUEGubQvJ0CXEnluv67x5F6OwynlQtLZ7S8IG4F28 yzH8nXdpvZbI7dS8mZIBNVgZgvbrRZH0RVg/QZ8FfD5rFF4rrikZT9L/I8vPLtIFAK/c OsppHFunAee2Y4WNVx3jIL5WOTEh9QqJ6uTrK+mCf117izsMNEybA0pVSH0FeN8fTzUY jalz/oesu58HERA9v5ly3yRk7YqC0YXLLKk3tcs1p2ss0yAiaxQhOOTUzfHZ+kmx4XmR L70A== X-Received: by 10.58.219.74 with SMTP id pm10mr29003156vec.1.1361394219165; Wed, 20 Feb 2013 13:03:39 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Michael Herman Date: Wed, 20 Feb 2013 13:03:19 -0800 Subject: Re: Import Question To: eli m Content-Type: multipart/alternative; boundary=047d7bd6b95cd5266904d62e4ae8 Cc: python-list@python.org 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: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361394228 news.xs4all.nl 6948 [2001:888:2000:d::a6]:57181 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39379 --047d7bd6b95cd5266904d62e4ae8 Content-Type: text/plain; charset=ISO-8859-1 you can check each import as it varies in loading time: time python -c "import [name of module]" example: time python -c "import flask" On Wed, Feb 20, 2013 at 12:53 PM, eli m wrote: > 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. > -- > http://mail.python.org/mailman/listinfo/python-list > --047d7bd6b95cd5266904d62e4ae8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
you can check each import as it varies in loading t= ime: time python -c "import [name of module]"

= example: time python -c "import flask"

On Wed, Feb 20, 2013 at 12:53 PM, eli m <techgeek201@gmail.com>= wrote:
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 thin= king thats the reason why it is slow to start up. Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list

--047d7bd6b95cd5266904d62e4ae8--