Antoine Pitrou added the comment: Ha, it seems actually worse than that, since no buffering argument is ever passed to the TextIOWrapper constructor. "bufsize=1" will simply get ignored, and line buffering doesn't work at all.
Example under 2.7: $ python -c 'import subprocess; p = subprocess.Popen(["/bin/cat"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, bufsize=1, universal_newlines=True); p.stdin.write("foo\n"); print(p.stdout.readline()); p.stdin.close()' foo Under 3.4, the same line hangs in the p.stdout.readline() call. ---------- title: subprocess line-buffering only works in universal newlines mode -> subprocess line-buffering doesn't work _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21471> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com