Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-13601: always use line-buffering for sys.stderr #17646
+11
−4
Conversation
This comment has been minimized.
This comment has been minimized.
LGTM, but it would be nice if you could add a test, for example in |
the :option:`-u` command-line option. | ||
|
||
.. versionchanged:: 3.9 | ||
Use line-buffering for non-interactive ``stderr``. |
This comment has been minimized.
This comment has been minimized.
vstinner
Dec 18, 2019
Member
Would you mind to elaborate what was the behavior previously?
What is the kind of buffering when line-buffering is not used? "Fully buffered" or "unbuffered"?
* 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 override this behaviour with | ||
the :option:`-u` command-line option. |
This comment has been minimized.
This comment has been minimized.
vstinner
Dec 18, 2019
Member
maybe explain that stdout and stderr are made fully unbuffered using -u.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
jendrikseipp commentedDec 17, 2019
•
edited by bedevere-bot
Fixes https://bugs.python.org/issue13601
https://bugs.python.org/issue13601