Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -894,14 +894,16 @@ The following attributes are also available:

.. attribute:: Popen.returncode

The child return code, set by :meth:`poll` and :meth:`wait` (and indirectly
by :meth:`communicate`). A ``None`` value indicates that the process
The child return code. Initially ``None``, :attr:`returncode` is set by :meth:`poll` and :meth:`wait` after process termination is observed.

A ``None`` value indicates that the process
hasn't terminated yet.

A negative value ``-N`` indicates that the child was terminated by signal
``N`` (POSIX only).



Windows Popen Helpers
---------------------

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Here we make it explicit that the returncode attribute can be outdated and then that the returncode is most reliability found by using poll().
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Here we make it explicit that the returncode attribute can be outdated and then that the returncode is most reliability found by using poll().