summaryrefslogtreecommitdiff
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorJoel Schaerer <joelthelion@laposte.net>2017-09-13 21:11:20 +0200
committerGregory P. Smith <greg@krypto.org>2017-09-13 12:11:20 -0700
commit88031a9adedb594500db643404614f6648beec81 (patch)
treed1c90bc3fa63e1f4cf463a193025a456d94e0ff0 /Lib/subprocess.py
parentacb9fa79fa6453c2bbe3ccfc9cad2837feb90093 (diff)
downloadcpython-git-88031a9adedb594500db643404614f6648beec81.tar.gz
Update subprocess.communicate() docstring.
Explicitly state that communicate() closes stdin after writing input to it.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 6b90d40564..dd994e2aaf 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