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


Groups > comp.lang.python > #39379

Re: Import Question

References <c5a35a50-320e-4c1f-a825-c80becd9d20f@googlegroups.com>
From Michael Herman <hermanmu@gmail.com>
Date 2013-02-20 13:03 -0800
Subject Re: Import Question
Newsgroups comp.lang.python
Message-ID <mailman.2128.1361394228.2939.python-list@python.org> (permalink)

Show all headers | 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