[issue7545] IO buffering behaviour not properly documented
Antoine Pitrou
report at bugs.python.org
Sat Dec 19 19:07:17 CET 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
> But now the question remains what the default is -- "full buffering" is
> only meaningful with a specified buffer size. The implementation seems
> to default to line buffering.
"full" buffering actually uses a default or custom buffer size when you
don't specify it. 4096 or 8192 usually (yes there's a heuristic :-)).
"full" buffering is the default for binary streams, as well as for text
streams which aren't a tty. text streams which are tty default to line
buffering.
(I admit full buffering is a confusing name; what could we use instead?
fixed-size buffering? chunk buffering?)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7545>
_______________________________________
More information about the Python-bugs-list
mailing list