From: Joel Schaerer Date: Wed, 13 Sep 2017 19:11:20 +0000 (+0200) Subject: Update subprocess.communicate() docstring. X-Git-Tag: v3.7.0a1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88031a9adedb594500db643404614f6648beec81;p=thirdparty%2FPython%2Fcpython.git Update subprocess.communicate() docstring. Explicitly state that communicate() closes stdin after writing input to it. --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 6b90d40564fc..dd994e2aaf15 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -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