New submission from STINNER Victor: 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. ---------- files: replace_stdio.patch keywords: patch messages: 262436 nosy: haypo priority: normal severity: normal status: open title: Replace stdout and stderr with simple standard printers at Python exit versions: Python 3.6 Added file: http://bugs.python.org/file42290/replace_stdio.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26642> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com