summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-17 21:05:29 (GMT)
committerGitHub <noreply@github.com>2019-05-17 21:05:29 (GMT)
commit12083284c54be25abadd85781d36b63731dc1f0c (patch)
tree5fdc2c6a606cd0d166562db7a07f96f3ae601e74 /Misc/NEWS.d
parentbcfbbd704646622e919c1306a91fba61d603483d (diff)
downloadcpython-12083284c54be25abadd85781d36b63731dc1f0c.zip
cpython-12083284c54be25abadd85781d36b63731dc1f0c.tar.gz
cpython-12083284c54be25abadd85781d36b63731dc1f0c.tar.bz2
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().
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/C API/2019-05-17-19-23-24.bpo-36763.TswmDy.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2019-05-17-19-23-24.bpo-36763.TswmDy.rst b/Misc/NEWS.d/next/C API/2019-05-17-19-23-24.bpo-36763.TswmDy.rst
new file mode 100644
index 0000000..29c0166
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2019-05-17-19-23-24.bpo-36763.TswmDy.rst
@@ -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``.