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

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sun Nov 1 17:53:49 EST 2009


On Sun, 01 Nov 2009 13:46:42 -0600, Robert Kern wrote:

> 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.

Given the OP's stated claim that all his functions are less than a screen 
in size, Notepad could do it, with just the tiniest amount of manual 
effort.



-- 
Steven



More information about the Python-list mailing list