]> granicus.if.org Git - python/commit
bpo-36763: _Py_RunMain() doesn't call Py_Exit() anymore (GH-13390)
authorVictor Stinner <vstinner@redhat.com>
Fri, 17 May 2019 21:05:29 +0000 (23:05 +0200)
committerGitHub <noreply@github.com>
Fri, 17 May 2019 21:05:29 +0000 (23:05 +0200)
commit12083284c54be25abadd85781d36b63731dc1f0c
tree5fdc2c6a606cd0d166562db7a07f96f3ae601e74
parentbcfbbd704646622e919c1306a91fba61d603483d
bpo-36763: _Py_RunMain() doesn't call Py_Exit() anymore (GH-13390)

Py_Main() and _Py_RunMain() now return the exitcode rather than
calling Py_Exit(exitcode) when calling PyErr_Print() if the current
exception type is SystemExit.

* Add _Py_HandleSystemExit().
* Add pymain_exit_err_print().
* Add pymain_exit_print().
Include/internal/pycore_pylifecycle.h
Misc/NEWS.d/next/C API/2019-05-17-19-23-24.bpo-36763.TswmDy.rst [new file with mode: 0644]
Modules/main.c
Python/pythonrun.c