On Sun, 24 May 2009 13:14:30 +0100, A. Cavallo wrote:

> how about the old and simple:
> 
> import ExpensiveModuleStub as ExpensiveModule

No, that won't do, because for it to have the desired effort, it needs to 
be inside the IntermediateModule, not the Test_Module. That means that 
IntermediateModule needs to know if it is running in "test mode" or "real 
mode", and that's (1) possibly impractical, and (2) not great design.



-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to