[issue27155] '-' sign typo in example

2016-05-30 Thread Ben Kane
Ben Kane added the comment: 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

[issue27155] '-' sign typo in example

2016-05-29 Thread Ben Kane
New submission from Ben Kane: On page https://docs.python.org/3/library/subprocess.html#replacing-os-system it looks like the code in the realistic example has a spurious '-' sign. The line: print("Child was terminated by signal", -retcode, file=sys.stderr) shou