[New-bugs-announce] [issue13601] sys.stderr should be unbuffered (or always line-buffered)

Antoine Pitrou report at bugs.python.org
Wed Dec 14 14:11:32 CET 2011

New submission from Antoine Pitrou <pitrou at free.fr>:

In issue13597, Philip Jenvey points out:

“I'm surprised to hear that stderr is line buffered by default. Historically stderr is never buffered (at least on POSIX) and for good reason: errors should be seen immediately”

Recent changes to the IO stack should allow stderr to be opened in fully unbuffered mode (and open(..., 'w', buffering=0) can be allowed too). Or at least it could be always line-buffered, even when redirected to a file.

components: IO, Interpreter Core, Library (Lib)
messages: 149447
nosy: benjamin.peterson, gvanrossum, pitrou, pjenvey, stutzbach
priority: normal
severity: normal
stage: needs patch
status: open
title: sys.stderr should be unbuffered (or always line-buffered)
type: behavior
versions: Python 3.2, Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list