New submission from Antoine Pitrou:
Currently, if you want to change the line buffering behaviour of standard
streams, you can create a new stream and assign it to
sys.{stdout,stderr,stdin}. Unfortunately, it is common for references to the
old streams to be stored in various places (such as logging configuration, or
third-party libraries). Replacing them all is probably a hopeless cause. It
would be much better if one could simply write `sys.stdout.line_buffering =
True` and be done with it.
----------
components: IO
messages: 294850
nosy: benjamin.peterson, pitrou, stutzbach
priority: normal
severity: normal
status: open
title: Allow setting line_buffering on existing TextIOWrapper
type: enhancement
versions: Python 3.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30526>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com