summaryrefslogtreecommitdiffstats
path: root/Doc/library/subprocess.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-10-13 22:52:07 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-10-13 22:52:07 (GMT)
commit39892055cdd560c9ddb895bfd2b82c3c31329218 (patch)
treeec3279a4b4717da6a8921a29ddb0e7aa7e407aac /Doc/library/subprocess.rst
parent3c95062f52afe43f12f774af57d18e87e76d098d (diff)
downloadcpython-39892055cdd560c9ddb895bfd2b82c3c31329218.zip
cpython-39892055cdd560c9ddb895bfd2b82c3c31329218.tar.gz
cpython-39892055cdd560c9ddb895bfd2b82c3c31329218.tar.bz2
asyncio doc: rewrite subprocess doc
* add a new example using transport and protocol * rewrite the example using streams to make it much simpler (remove error handling, use a simpler Python code) * copy (and adapt) more documentation from the subprocess module: - add a note about Process.wait() deadlock - add a note about shell injection - etc. * sort Process methods and attributes in the same order than subprocess.Popen methods and attributes, so the documentation looks closer * list differences between Process and subprocess.Popen APIs
Diffstat (limited to 'Doc/library/subprocess.rst')
-rw-r--r--Doc/library/subprocess.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index b2238f0..36cbf3c 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -634,7 +634,7 @@ Instances of the :class:`Popen` class have the following methods:
``None``, if no data should be sent to the child. The type of *input*
must be bytes or, if *universal_newlines* was ``True``, a string.
- :meth:`communicate` returns a tuple ``(stdoutdata, stderrdata)``.
+ :meth:`communicate` returns a tuple ``(stdout_data, stderr_data)``.
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