[Python-checkins] Update subprocess.communicate() docstring.
Gregory P. Smith
webhook-mailer at python.org
Wed Sep 13 15:11:23 EDT 2017
https://github.com/python/cpython/commit/88031a9adedb594500db643404614f6648beec81
commit: 88031a9adedb594500db643404614f6648beec81
branch: master
author: Joel Schaerer <joelthelion at laposte.net>
committer: Gregory P. Smith <greg at krypto.org>
date: 2017-09-13T12:11:20-07:00
summary:
Update subprocess.communicate() docstring.
Explicitly state that communicate() closes stdin after writing input to it.
files:
M Lib/subprocess.py
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 6b90d40564f..dd994e2aaf1 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -800,9 +800,9 @@ def _stdin_write(self, input):
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
More information about the Python-checkins
mailing list