diff options
author | Jendrik Seipp <jendrikseipp@gmail.com> | 2020-01-01 22:21:43 (GMT) |
---|---|---|
committer | Antoine Pitrou <antoine@python.org> | 2020-01-01 22:21:43 (GMT) |
commit | 5b9077134cd0535f21905d5f5195847526cac99c (patch) | |
tree | 4bed1fd2a5350e003816b1cc05a474d903efedcc /Doc | |
parent | 46abfc1416ff8e450999611ef8f231ff871ab133 (diff) | |
download | cpython-5b9077134cd0535f21905d5f5195847526cac99c.zip cpython-5b9077134cd0535f21905d5f5195847526cac99c.tar.gz cpython-5b9077134cd0535f21905d5f5195847526cac99c.tar.bz2 |
bpo-13601: always use line-buffering for sys.stderr (GH-17646)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sys.rst | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index a824fb9..0aae263 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1446,9 +1446,15 @@ always available. for the Windows console, this only applies when :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also set. - * When interactive, ``stdout`` and ``stderr`` streams are line-buffered. - Otherwise, they are block-buffered like regular text files. You can - override this value with the :option:`-u` command-line option. + * When interactive, the ``stdout`` stream is line-buffered. Otherwise, + it is block-buffered like regular text files. The ``stderr`` stream + is line-buffered in both cases. You can make both streams unbuffered + by passing the :option:`-u` command-line option or setting the + :envvar:`PYTHONUNBUFFERED` environment variable. + + .. versionchanged:: 3.9 + Non-interactive ``stderr`` is now line-buffered instead of fully + buffered. .. note:: |