mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Update subprocess.communicate() docstring.
Explicitly state that communicate() closes stdin after writing input to it.
This commit is contained in:
parent
acb9fa79fa
commit
88031a9ade
1 changed files with 3 additions and 3 deletions
|
@ -800,9 +800,9 @@ class Popen(object):
|
|||
raise
|
||||
|
||||
def communicate(self, input=None, timeout=None):
|
||||
"""Interact with process: Send data to stdin. Read data from
|
||||
stdout and stderr, until end-of-file is reached. Wait for
|
||||
process to terminate.
|
||||
"""Interact with process: Send data to stdin and close it.
|
||||
Read data from stdout and stderr, until end-of-file is
|
||||
reached. Wait for process to terminate.
|
||||
|
||||
The optional "input" argument should be data to be sent to the
|
||||
child process (if self.universal_newlines is True, this should
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue