Rebinding stdout (was: Re: Python! Is! Truly! Amazing!)

JanC usenet_spam at janc.invalid
Mon Jan 3 13:38:55 EST 2005


Just schreef:

> You should always save stdout instead of using __stdout__. It may not be 
> the same!

You're right, especially when this code would execute in an (at 
programming time) unknown context.


-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9



More information about the Python-list mailing list