Message236482
The changes from http://bugs.python.org/issue10197 caused subprocess.getstatusoutput() to start returning a subprocess returncode style status for the child process instead of a POSIX style status.
before that bug's changes:
>>> getstatusoutput("exit 1")[0]
256
>>> getstatusoutput("kill -TERM $$")[0]
15
after that bug's changes:
>>> getstatusoutput("exit 1")[0]
1
>>> getstatusoutput("kill -TERM $$")[0]
-15
This behavior was entirely untested so it was missed when fixing issue10197.
Given the new behavior has shipped in a stable Python release starting with (I believe) 3.3.4 and all 3.4 releases I do not think it should be changed.
But we should document it with proper versionchanged notices. |
|
Date |
User |
Action |
Args |
2015-02-24 08:56:18 | gregory.p.smith | set | recipients:
+ gregory.p.smith |
2015-02-24 08:56:18 | gregory.p.smith | set | messageid: <1424768178.86.0.938424229154.issue23508@psf.upfronthosting.co.za> |
2015-02-24 08:56:18 | gregory.p.smith | link | issue23508 messages |
2015-02-24 08:56:18 | gregory.p.smith | create | |
|