mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
asyncio, tulip issue 190: Process.communicate() now ignores
ConnectionResetError too
This commit is contained in:
parent
cc996b5789
commit
d55b54d5c0
2 changed files with 12 additions and 9 deletions
|
@ -191,9 +191,9 @@ Process
|
|||
process, or ``None``, if no data should be sent to the child. The type
|
||||
of *input* must be bytes.
|
||||
|
||||
If a :exc:`BrokenPipeError` is raised when writing *input* into stdin,
|
||||
the exception is ignored. It occurs when the process exits before all
|
||||
data are written into stdin.
|
||||
If a :exc:`BrokenPipeError` or :exc:`ConnectionResetError` exception is
|
||||
raised when writing *input* into stdin, the exception is ignored. It
|
||||
occurs when the process exits before all data are written into stdin.
|
||||
|
||||
:meth:`communicate` returns a tuple ``(stdoutdata, stderrdata)``.
|
||||
|
||||
|
@ -210,7 +210,8 @@ Process
|
|||
This method is a :ref:`coroutine <coroutine>`.
|
||||
|
||||
.. versionchanged:: 3.4.2
|
||||
The method now ignores :exc:`BrokenPipeError`.
|
||||
The method now ignores :exc:`BrokenPipeError` and
|
||||
:exc:`ConnectionResetError`.
|
||||
|
||||
.. method:: kill()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue