Re: Automatic import PEP

2006-10-06 Thread Georg Brandl
Dan Bishop wrote: > On Sep 22, 10:09 pm, Connelly Barnes <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I wrote the 'autoimp' module [1], which allows you to import lazy modules: >> >> from autoimp import * (Import lazy wrapper objects around all modules; >> "lazy >>module

Re: Automatic import PEP

2006-10-06 Thread Dan Bishop
On Sep 22, 10:09 pm, Connelly Barnes <[EMAIL PROTECTED]> wrote: > Hi, > > I wrote the 'autoimp' module [1], which allows you to import lazy modules: > > from autoimp import * (Import lazy wrapper objects around all modules; > "lazy >modules" will turn into normal mo

Re: Automatic import PEP

2006-10-06 Thread Robert Kern
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Robert > Kern wrote: > >> Lawrence D'Oliveiro wrote: >>> In message <[EMAIL PROTECTED]>, >>> Connelly Barnes wrote: >>> The main point of autoimp is to make usage of the interactive Python prompt more productive by including "f

Re: Automatic import PEP

2006-10-06 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Robert Kern wrote: > Lawrence D'Oliveiro wrote: >> In message <[EMAIL PROTECTED]>, >> Connelly Barnes wrote: >> >>> The main point of autoimp is to make usage of the interactive Python >>> prompt more productive by including "from autoimp import *" in the >>> PYTHO

Re: Automatic import PEP

2006-09-24 Thread Robert Kern
Saizan wrote: > BTW what would the benefit of the form "lazily import A, B"? If you > name the modules why not import them directly? Maybe you are not sure > you would need them, but I don't think that the overhead of importing > them should matter.. It's primarily useful for large packages. scipy

Re: Automatic import PEP

2006-09-24 Thread Saizan
I think this is obviously great in interactive mode and would also be very good in the early stages of developing if you have several sources files. A little error prone maybe, and should be avoided in "production" code I suppose. (I would like to track each name exactly, on each installation of py

Re: Automatic import PEP

2006-09-24 Thread Robert Kern
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Connelly > Barnes wrote: > >> The main point of autoimp is to make usage of the interactive Python >> prompt more productive by including "from autoimp import *" in the >> PYTHONSTARTUP file. > > The main problem I have with your idea i

Re: Automatic import PEP

2006-09-24 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Connelly Barnes wrote: > The main point of autoimp is to make usage of the interactive Python > prompt more productive by including "from autoimp import *" in the > PYTHONSTARTUP file. The main problem I have with your idea is that any kind of import statement with

Re: Automatic import PEP

2006-09-24 Thread Sybren Stuvel
Connelly Barnes enlightened us with: > I wrote the 'autoimp' module [1], which allows you to import lazy modules: > > The main point of autoimp is to make usage of the interactive Python > prompt more productive by including "from autoimp import *" in the > PYTHONSTARTUP file. Sounds like a great

Re: Automatic import PEP

2006-09-23 Thread Andrea
> Opinions? Great :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Automatic import PEP

2006-09-22 Thread Michel Claveau
Hi! >>> I have also found "autoimp" useful in writing normal Python... +1 -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Automatic import PEP

2006-09-22 Thread Connelly Barnes
Hi, I wrote the 'autoimp' module [1], which allows you to import lazy modules: from autoimp import * (Import lazy wrapper objects around all modules; "lazy modules" will turn into normal modules when an attribute is first accessed with g