[issue26642] Replace stdout and stderr with simple standard printers at Python exit

STINNER Victor report at bugs.python.org
Fri Mar 25 09:13:17 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26642>
_______________________________________


More information about the Python-bugs-list mailing list