[docs] [issue19622] Default buffering for input and output pipes in subprocess module

Ryan report at bugs.python.org
Wed Oct 1 20:33:49 CEST 2014


Ryan added the comment:

This is not fixed. The documentation may be more correct now, but the behavior still does not match Python 2 as purported.

The default bufsize changed in 3.3.1 is incorrect, at least when tested in 3.4.0 and 3.4.1.

Here is a test for systems with cat available.

    import subprocess
    proc = subprocess.Popen('cat', stdin=subprocess.PIPE)
    proc.stdin.write('test\n'.encode('utf8'))

This test will succeed in Python 2.x and Python 3.0 - 3.3.0, but fail on 3.4.x. This is a regression as the documentation states "did not match the behavior of Python 2 as most code expected", while the current behavior definitely does not match Python 2.

----------
nosy: +lunixbochs
versions:  -Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19622>
_______________________________________


More information about the docs mailing list