Shadowing builtins (was Re: a pyrex-inspired for-i-from-1-to-n ...)

A. Lloyd Flanagan alloydflanagan at
Fri Apr 4 00:50:42 CEST 2003

Peter Hansen <peter at> wrote in message news:<3E8B4094.F61515B3 at>...
> Jp Calderone wrote:
> > 
> forth my perspective on this.  I'm coming to *count* on this as one of
> the most effective solutions for certain kinds of testing.  (Specifically,
> by creating a mock file system by intercepting open() calls in my own
> method, to allow generating of various file system errors and situations
> and to increase performance of unit tests by avoiding the real file
> system.)
> -Peter

Hey, that's a great idea, thanks!

More information about the Python-list mailing list