How to import only one module in a package when the package __init__.py has already imports the modules?

Robert Kern robert.kern at gmail.com
Sun Nov 1 14:46:42 EST 2009


Peng Yu wrote:
> On Sat, Oct 31, 2009 at 11:40 PM, Steven D'Aprano
> <steve at remove-this-cybersource.com.au> wrote:

>> Oh wait, I get it... you want to do a global search-and-replace over the
>> entire file. *face-palm*
> 
> Yes. You get it.

In any capable programmer's editor, it should not be hard to do a local 
search-and-replace over just the one function.

-- 
Robert Kern

"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 mailing list