diff options
Diffstat (limited to 'Doc/library/asyncio-subprocess.rst')
-rw-r--r-- | Doc/library/asyncio-subprocess.rst | 34 |
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 |