mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
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().
This commit is contained in:
parent
bcfbbd7046
commit
12083284c5
4 changed files with 117 additions and 63 deletions
|
|
@ -0,0 +1,3 @@
|
|||
``Py_Main()`` now returns the exitcode rather than calling
|
||||
``Py_Exit(exitcode)`` when calling ``PyErr_Print()`` if the current
|
||||
exception type is ``SystemExit``.
|
||||
Loading…
Add table
Add a link
Reference in a new issue