Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
reword the Popen.returncode text
  • Loading branch information
gpshead authored Apr 24, 2023
commit a6acc970bba789dc39635ffe0597378525c27751
9 changes: 5 additions & 4 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -895,10 +895,11 @@ The following attributes are also available:
.. attribute:: Popen.returncode

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 call to the :meth:`poll`, :meth:`wait`, or :meth:`communicate` methods
if they detect that the process has terminated.

A ``None`` value indicates that the process hadn't yet terminated at the
time of the last method call.

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