Automatic import PEP
robert.kern at gmail.com
Sun Sep 24 22:12:33 CEST 2006
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.
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list