This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jvr
Recipients
Date 2005-01-05.09:18:56
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
sys.__stdout__ is quite often abused (two independent sightings on 
c.l.py yesterday): people use it to restore stdout instead of saving 
the previous stdout.

The real intended use for __stdout__ isn't all that clear (I keep 
wondering myself why it's there in the first place; its use case 
must be quite obscure), but more importantly I think the sys docs 
should contain a warning that __stdout__ is *not* suitable to 
restore sys.stdout after redirection.

I'd produce a patch if I knew how to better describe what 
sys.__stdout__ was *for*.
History
Date User Action Args
2008-01-20 09:57:23adminlinkissue1096310 messages
2008-01-20 09:57:23admincreate