Don't Panic! (Re: Shadowing builtins (was Re: a pyrex-inspired for-i-from-1-to-n...))
Greg Ewing (using news.cis.dfn.de)
ckea25d02 at sneakemail.com
Wed Apr 2 19:01:27 EST 2003
Peter Hansen wrote:
> Hmm.... that is exactly what is needed to make this effective in
> unit testing. One imports the module under test, then fakes the
> open method in that other module:
It seems fairly certain that, if this optimisation becomes
a reality, there will be some way of turning it off, perhaps
a command line option. So there's no need to panic just yet.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list