summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Schaerer <joelthelion@laposte.net>2017-09-13 19:11:20 (GMT)
committerGregory P. Smith <greg@krypto.org>2017-09-13 19:11:20 (GMT)
commit88031a9adedb594500db643404614f6648beec81 (patch)
treed1c90bc3fa63e1f4cf463a193025a456d94e0ff0
parentacb9fa79fa6453c2bbe3ccfc9cad2837feb90093 (diff)
downloadcpython-88031a9adedb594500db643404614f6648beec81.zip
cpython-88031a9adedb594500db643404614f6648beec81.tar.gz
cpython-88031a9adedb594500db643404614f6648beec81.tar.bz2
Update subprocess.communicate() docstring.
Explicitly state that communicate() closes stdin after writing input to it.
-rw-r--r--Lib/subprocess.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 6b90d40..dd994e2 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