summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-03 22:08:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-03 22:08:14 (GMT)
commitb79eb0502c5a01d4ebf793d689f6cc5fa35a1ed5 (patch)
tree4e8aaa069699ce2854c48a4682418e499faa524f /Doc
parentcb306d1b592d03f56630a3551b89b97ab34492e9 (diff)
downloadcpython-b79eb0502c5a01d4ebf793d689f6cc5fa35a1ed5.zip
cpython-b79eb0502c5a01d4ebf793d689f6cc5fa35a1ed5.tar.gz
cpython-b79eb0502c5a01d4ebf793d689f6cc5fa35a1ed5.tar.bz2
asyncio.subprocess: Replace Process.get_subprocess() method with a
Process.subprocess read-only property
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-subprocess.rst34
1 files changed, 17 insertions, 17 deletions
diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst
index 4c399c6..5bfbbc7 100644
--- a/Doc/library/asyncio-subprocess.rst
+++ b/Doc/library/asyncio-subprocess.rst
@@ -57,6 +57,21 @@ Process
.. class:: asyncio.subprocess.Process
+ .. attribute:: pid
+
+ The identifier of the process.
+
+ Note that if you set the *shell* argument to ``True``, this is the
+ process identifier of the spawned shell.
+
+ .. attribute:: returncode
+
+ Return code of the process when it exited. A ``None`` value indicates
+ that the process has not terminated yet.
+
+ A negative value ``-N`` indicates that the child was terminated by signal
+ ``N`` (Unix only).
+
.. attribute:: stdin
Standard input stream (write), ``None`` if the process was created with
@@ -72,20 +87,9 @@ Process
Standard error stream (read), ``None`` if the process was created with
``stderr=None``.
- .. attribute:: pid
-
- The identifier of the process.
-
- Note that if you set the *shell* argument to ``True``, this is the
- process identifier of the spawned shell.
+ .. attribute:: subprocess
- .. attribute:: returncode
-
- Return code of the process when it exited. A ``None`` value indicates
- that the process has not terminated yet.
-
- A negative value ``-N`` indicates that the child was terminated by signal
- ``N`` (Unix only).
+ Underlying :class:`subprocess.Popen` object.
.. method:: communicate(input=None)
@@ -107,10 +111,6 @@ Process
The data read is buffered in memory, so do not use this method if the
data size is large or unlimited.
- .. method:: get_subprocess()
-
- Get the underlying :class:`subprocess.Popen` object.
-
.. method:: kill()
Kills the child. On Posix OSs the function sends :py:data:`SIGKILL` to