Message266732
https://docs.python.org/3/library/subprocess.html#subprocess.Popen.returncode
does mention the negativeness about returncode in conjunction with POSIX signals. It would be helpful to mention this Python-specific (I think) behavior in a comment.
However, returncode can also be set by poll() and wait(), which can also return errors. In the more realistic example, I would appreciate code that handles those errors as well (a check for returncode > 0), or a comment detailing that other errors aren't handled. I copied that code into mine, and didn't consider those cases initially, because "realistic" was in the description. |
|
Date |
User |
Action |
Args |
2016-05-31 04:01:56 | Ben Kane | set | recipients:
+ Ben Kane, r.david.murray, docs@python, abarry |
2016-05-31 04:01:55 | Ben Kane | set | messageid: <1464667315.96.0.496402660975.issue27155@psf.upfronthosting.co.za> |
2016-05-31 04:01:55 | Ben Kane | link | issue27155 messages |
2016-05-31 04:01:55 | Ben Kane | create | |
|