mirror of
https://github.com/python/cpython.git
synced 2026-04-05 03:21:05 +00:00
gh-141473: Document not calling Popen.wait after Popen.communicate times out. (GH-142101)
Document not calling Popen.wait after Popen.communicate times out. Closes #141473
This commit is contained in:
parent
981ce0cf3a
commit
3e2c557493
1 changed files with 5 additions and 0 deletions
|
|
@ -846,6 +846,11 @@ Instances of the :class:`Popen` class have the following methods:
|
|||
proc.kill()
|
||||
outs, errs = proc.communicate()
|
||||
|
||||
After a call to :meth:`~Popen.communicate` raises :exc:`TimeoutExpired`, do
|
||||
not call :meth:`~Popen.wait`. Use an additional :meth:`~Popen.communicate`
|
||||
call to finish handling pipes and populate the :attr:`~Popen.returncode`
|
||||
attribute.
|
||||
|
||||
.. note::
|
||||
|
||||
The data read is buffered in memory, so do not use this method if the data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue