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


Groups > comp.lang.python > #39379

Re: Import Question

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 <hermanmu@gmail.com>
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&gt;': 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 <c5a35a50-320e-4c1f-a825-c80becd9d20f@googlegroups.com>
References <c5a35a50-320e-4c1f-a825-c80becd9d20f@googlegroups.com>
From Michael Herman <hermanmu@gmail.com>
Date Wed, 20 Feb 2013 13:03:19 -0800
Subject Re: Import Question
To eli m <techgeek201@gmail.com>
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 <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.2128.1361394228.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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 <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
> thinking thats the reason why it is slow to start up. Thanks in advance.
> --
> http://mail.python.org/mailman/listinfo/python-list
>

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