Antoine Pitrou added the comment: Ah, I had forgotten about the `line_buffering` attribute. Thank you. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue30504> _______________________________________