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 ajaksu2
Recipients ajaksu2, jvr, kbk
Date 2009-02-09.22:49:49
SpamBayes Score 0.0004970175
Marked as misclassified No
Message-id <1234219791.77.0.67773059149.issue1096310@psf.upfronthosting.co.za>
In-reply-to
Content
Current docs seem to explain what __stdout__ is for:
"""
__stdin__ / __stdout__ / __stderr__

These objects contain the original values of stdin, stderr and stdout at
the start of the program. They are used during finalization, and could
be useful to restore the actual files to known working file objects in
case they have been overwritten with a broken object.
"""

Should a note of warning be added? Something like:

Explicitly saving the original IO streams and restoring them after
redirection is safer and the recommended idiom.
History
Date User Action Args
2009-02-09 22:49:52ajaksu2setrecipients: + ajaksu2, jvr, kbk
2009-02-09 22:49:51ajaksu2setmessageid: <1234219791.77.0.67773059149.issue1096310@psf.upfronthosting.co.za>
2009-02-09 22:49:50ajaksu2linkissue1096310 messages
2009-02-09 22:49:49ajaksu2create