8000 gh-87452 Making returncode unreliability explicit by zitterbewegung · Pull Request #92181 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-87452 Making returncode unreliability explicit #92181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Apr 24, 2023
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
Rewording with benjaminp and abadger1999 suggestions.
  • Loading branch information
zitterbewegung committed May 2, 2022
commit c0dcc5b0cb4a184e47ca045010f5d9af44dc3bfb
6 changes: 3 additions & 3 deletions Doc/library/subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -890,14 +890,14 @@ 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. This attribute caches the returncode when :meth:`poll`, :meth:`wait`, or (indirectly) :meth:`communicate` was last called. To get the current one :meth:`poll` can be called to update the cache and get the current value.

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).

Note: The value stored in returncode may be out-of-date. Use poll() to reliably find the current return code.


Windows Popen Helpers
Expand Down
0