[issue40707] Popen.communicate documentation does not say how to get the return code

Terry J. Reedy report at bugs.python.org
Sat May 23 03:45:08 EDT 2020


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Can you attach a script or post an interactive session, with both success and failure, showing that returncode is set appropriately after reading output?  Possible calls: '''python -c "print('Success')"''', "raise Exception('Failure')".  Or point to a test in test_subprocess.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40707>
_______________________________________


More information about the Python-bugs-list mailing list