bpo-40094: Add os.waitstatus_to_exitcode() by vstinner · Pull Request #19201 · python/cpython

@vstinner vstinner changed the title bpo-40094: Add os._wait_status_to_returncode() bpo-40094: Add os.status_to_exitcode()

Mar 28, 2020

corona10

corona10

@vstinner vstinner changed the title bpo-40094: Add os.status_to_exitcode() bpo-40094: Add os.waitstatus_to_exitcode()

Mar 30, 2020

This was referenced

Mar 31, 2020

@vstinner

Add os.waitstatus_to_exitcode() function to convert a wait status to an
exitcode.

Suggest waitstatus_to_exitcode() usage in the documentation when
appropriate.

Use waitstatus_to_exitcode():

* multiprocessing, os, subprocess and _bootsubprocess modules.
* test.support.wait_process()
* Many tests
* setup.py: run_command()

@vstinner

@vstinner

@vstinner vstinner deleted the wait_status_to_returncode branch

April 1, 2020 16:49