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 terry.reedy
Recipients chinmay.malvania, steven.daprano, terry.reedy
Date 2021-06-04.18:47:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622832449.33.0.538169252308.issue44266@roundup.psfhosted.org>
In-reply-to
Content
If you intend to import the stdlib sys and succeed, the original stdout is called '__stdout__'.  See 
https://docs.python.org/3/library/sys.html#sys.__stdin__, including the note that it may be None on Windows.  Also peruse that doc to see what attributes sys *does* have.

When you have questions about using python, please post first to python-list or other question-answering forums.
History
Date User Action Args
2021-06-04 18:47:29terry.reedysetrecipients: + terry.reedy, steven.daprano, chinmay.malvania
2021-06-04 18:47:29terry.reedysetmessageid: <1622832449.33.0.538169252308.issue44266@roundup.psfhosted.org>
2021-06-04 18:47:29terry.reedylinkissue44266 messages
2021-06-04 18:47:29terry.reedycreate