bpo-13601: Mention stderr's line buffering in What's New by hauntsaninja · Pull Request #20168 · python/cpython
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's one subtle point. This really only applies to the initial value of sys.stderr. If you assign something else to sys.stderr its buffering isn't magically going to change. But I'm not sure that most readers of this document would appreciate the extra words we'd need to add to make this distinction (since few people ever assign anything to sys.stderr), and to more advanced readers this would be obvious.
Thinking about it some more, the place to note that subtle point would've been the Misc/NEWS entry for the original PR, and since that didn't, let's say we won't need it here. So I'll mark this as automerge and go to bed.
The "defaults to" phrasing helps hedge that (and -u), too, since if you assign to sys.stderr you aren't using the default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters