diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-23 21:27:59 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-23 21:27:59 (GMT) |
commit | 96d5c541300dba83f4589448798585db479eacaa (patch) | |
tree | 19e8f942e59e4542c636404335351cda3e78f4e0 /Doc/library/subprocess.rst | |
parent | 0acbcb5bbeec87e3a8fae872a0368a4e297a8e8a (diff) | |
parent | 9e0ae5398097e56490bcc720fe7ca56d50aec175 (diff) | |
download | cpython-96d5c541300dba83f4589448798585db479eacaa.zip cpython-96d5c541300dba83f4589448798585db479eacaa.tar.gz cpython-96d5c541300dba83f4589448798585db479eacaa.tar.bz2 |
Issue #18757: Improved cross-references in the concurrent package.
Diffstat (limited to 'Doc/library/subprocess.rst')
-rw-r--r-- | Doc/library/subprocess.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index dc7d0b3..208edd5 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -76,7 +76,7 @@ use cases, the underlying :class:`Popen` interface can be used directly. Run command with arguments. Wait for command to complete. If the return code was zero then return, otherwise raise :exc:`CalledProcessError`. The :exc:`CalledProcessError` object will have the return code in the - :attr:`returncode` attribute. + :attr:`~CalledProcessError.returncode` attribute. The arguments shown above are merely the most common ones, described below in :ref:`frequently-used-arguments` (hence the use of keyword-only notation @@ -122,8 +122,8 @@ use cases, the underlying :class:`Popen` interface can be used directly. If the return code was non-zero it raises a :exc:`CalledProcessError`. The :exc:`CalledProcessError` object will have the return code in the - :attr:`returncode` attribute and any output in the :attr:`output` - attribute. + :attr:`~CalledProcessError.returncode` attribute and any output in the + :attr:`~CalledProcessError.output` attribute. The arguments shown above are merely the most common ones, described below in :ref:`frequently-used-arguments` (hence the use of keyword-only notation @@ -617,14 +617,14 @@ Instances of the :class:`Popen` class have the following methods: .. method:: Popen.poll() - Check if child process has terminated. Set and return :attr:`returncode` - attribute. + Check if child process has terminated. Set and return + :attr:`~Popen.returncode` attribute. .. method:: Popen.wait(timeout=None) - Wait for child process to terminate. Set and return :attr:`returncode` - attribute. + Wait for child process to terminate. Set and return + :attr:`~Popen.returncode` attribute. If the process does not terminate after *timeout* seconds, raise a :exc:`TimeoutExpired` exception. It is safe to catch this exception and @@ -868,8 +868,8 @@ In this section, "a becomes b" means that b can be used as a replacement for a. In addition, the replacements using :func:`check_output` will fail with a :exc:`CalledProcessError` if the requested operation produces a non-zero - return code. The output is still available as the ``output`` attribute of - the raised exception. + return code. The output is still available as the + :attr:`~CalledProcessError.output` attribute of the raised exception. In the following examples, we assume that the relevant functions have already been imported from the :mod:`subprocess` module. |