Automatic import PEP

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Fri Oct 6 06:29:32 EDT 2006


In message <mailman.540.1159128784.10491.python-list at python.org>, Robert
Kern wrote:

> Lawrence D'Oliveiro wrote:
>> In message <mailman.491.1158981359.10491.python-list at python.org>,
>> 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 wildcards in it automatically starts my bogosity meter
>> flashing its "RED ALERT" sign and clanging all its alarm bells.
> 
> "from ... import *" was *designed* for interactive use, which is exactly
> what Connelly is suggesting. It's not a bad thing in that context.

But there is nothing in the language that constrains its use to that
context, is there?

Clang, clang...



More information about the Python-list mailing list