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 vstinner
Recipients vstinner
Date 2016-03-25.13:13:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The Python shutdown process is complex and fragile.

It was discussed in the issue #25654 to replace stdout and stderr with simple "standard printers" (implemented in C, don't depend on other Python objects or modules).

Attached patch implements this idea. The patch begins with closing standard stream objects (sys.stdin, sys.stdout, sys.stderr), and then replace stdout and stderr.
Date User Action Args
2016-03-25 13:13:17vstinnersetrecipients: + vstinner
2016-03-25 13:13:17vstinnersetmessageid: <>
2016-03-25 13:13:17vstinnerlinkissue26642 messages
2016-03-25 13:13:16vstinnercreate