Why can't I restore my redirected stdout?

andres at corrada.com andres at corrada.com
Thu Jun 8 21:51:10 EDT 2000


On Thu, Jun 08, 2000 at 11:51:15PM +0000, Rainer Deyke wrote:
> 
> If sys.stdout and sys.__stdout__ point to the same object, and you assign
> some other object to sys.stdout, it is be possible to restore it by
> assigning sys.__stdout__ to sys.stdout.
> 

You are correct. My solution was appropriate but my explanation was not.

------------------------------------------------------
Andres Corrada-Emmanuel   Email: andres at corrada.com
------------------------------------------------------




More information about the Python-list mailing list