Commit 88031a9a authored by Joel Schaerer's avatar Joel Schaerer Committed by Gregory P. Smith

Update subprocess.communicate() docstring.

Explicitly state that communicate() closes stdin after writing input to it.
parent acb9fa79
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment