Message81512
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. |
|
Date |
User |
Action |
Args |
2009-02-09 22:49:52 | ajaksu2 | set | recipients:
+ ajaksu2, jvr, kbk |
2009-02-09 22:49:51 | ajaksu2 | set | messageid: <1234219791.77.0.67773059149.issue1096310@psf.upfronthosting.co.za> |
2009-02-09 22:49:50 | ajaksu2 | link | issue1096310 messages |
2009-02-09 22:49:49 | ajaksu2 | create | |
|