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 belopolsky
Recipients Marc.Abramowitz, alex, barry, belopolsky, ezio.melotti, ncoghlan, nikratio, pitrou, rhettinger, vstinner
Date 2013-07-23.00:51:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It would be nice if this context manager had an option to redirect the file descriptor 0 rather than just sys.stdout.  (For those familiar with py.test, I am asking for an equivalent of --capture=fd functionality.)

Unlike patching sys.stdout, which is within reach to most python users, redirecting fd 0 (and restoring it) is not a trivial task.
Date User Action Args
2013-07-23 00:51:17belopolskysetrecipients: + belopolsky, barry, rhettinger, ncoghlan, pitrou, vstinner, ezio.melotti, alex, nikratio, Marc.Abramowitz
2013-07-23 00:51:17belopolskysetmessageid: <>
2013-07-23 00:51:17belopolskylinkissue15805 messages
2013-07-23 00:51:16belopolskycreate