Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 385d8d2 commit 68f5836Copy full SHA for 68f5836
1 file changed
Doc/library/subprocess.rst
@@ -919,9 +919,12 @@ Reassigning them to new values is unsupported:
919
920
.. attribute:: Popen.returncode
921
922
- The child return code, set by :meth:`poll` and :meth:`wait` (and indirectly
923
- by :meth:`communicate`). A ``None`` value indicates that the process
924
- hasn't terminated yet.
+ The child return code. Initially ``None``, :attr:`returncode` is set by
+ a call to the :meth:`poll`, :meth:`wait`, or :meth:`communicate` methods
+ if they detect that the process has terminated.
925
+
926
+ A ``None`` value indicates that the process hadn't yet terminated at the
927
+ time of the last method call.
928
929
A negative value ``-N`` indicates that the child was terminated by signal
930
``N`` (POSIX only).
0 commit comments