[issue1191964] add non-blocking read and write methods to subprocess.Popen
STINNER Victor
report at bugs.python.org
Thu Jul 24 01:51:33 CEST 2014
STINNER Victor added the comment:
> I have implemented and would continue to lean towards continuing to hide BrokenPipeError on the additional API endpoints.
FYI asyncio.Process.communicate() ignores BrokenPipeError and ConnectionResetError, whereas asyncio.Process.stdin.drain() (coroutine to wait until all bytes are written) raises a BrokenPipeError or ConnectionResetError if the child process exited. I think subprocess has the same design.
(I modified recently asyncio to ignore BrokenPipeError in communicate(), it was a bug.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1191964>
_______________________________________
More information about the Python-bugs-list
mailing list