summaryrefslogtreecommitdiffstats
path: root/Doc/library/subprocess.rst
diff options
context:
space:
mode:
authorAndrew Kuchling <amk@amk.ca>2014-04-14 19:08:18 (GMT)
committerAndrew Kuchling <amk@amk.ca>2014-04-14 19:08:18 (GMT)
commit4f7b0c3c358fe614042951a4ecacf73f08254699 (patch)
tree3bc4dea26c5c769cc9de95201c4bd1b89da3dc52 /Doc/library/subprocess.rst
parent94255f3a803abbaa97f6c90266506bbdd7941fbb (diff)
downloadcpython-4f7b0c3c358fe614042951a4ecacf73f08254699.zip
cpython-4f7b0c3c358fe614042951a4ecacf73f08254699.tar.gz
cpython-4f7b0c3c358fe614042951a4ecacf73f08254699.tar.bz2
#10481: describe universal_newlines' effect on communicate()/check_output() output (alternately bytes or strings)
Patch by Sam Kimbrel.
Diffstat (limited to 'Doc/library/subprocess.rst')
-rw-r--r--Doc/library/subprocess.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index cdcbe82..3043708 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -660,6 +660,7 @@ Instances of the :class:`Popen` class have the following methods:
must be bytes or, if *universal_newlines* was ``True``, a string.
:meth:`communicate` returns a tuple ``(stdoutdata, stderrdata)``.
+ The data will be bytes or, if *universal_newlines* was ``True``, strings.
Note that if you want to send data to the process's stdin, you need to create
the Popen object with ``stdin=PIPE``. Similarly, to get anything other than