Why text I/O must be buffered in python 3? Why text I/O must be buffered in python 3? python-3.x python-3.x

Why text I/O must be buffered in python 3?


This is an open bug, issue # 17404 (last update 2013-03-13): http://bugs.python.org/issue17404


For text files, if you want to use the buffering line-by-line, use open(..., buffering=1)

From python documentation:

1 to select line buffering (only usable in text mode)