]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-101578: Normalize the current exception (GH-101607)
authorMark Shannon <mark@hotpy.org>
Wed, 8 Feb 2023 09:31:12 +0000 (09:31 +0000)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2023 09:31:12 +0000 (09:31 +0000)
commitfeec49c40736fc05626a183a8d14c4ebbea5ae28
tree5af6110eca8c2a21a9f699b40a87e7567c603e98
parent027adf42cd85db41fee05b0a40d89ef822876c97
GH-101578: Normalize the current exception (GH-101607)

* Make sure that the current exception is always normalized.

* Remove redundant type and traceback fields for the current exception.

* Add new API functions: PyErr_GetRaisedException, PyErr_SetRaisedException

* Add new API functions: PyException_GetArgs, PyException_SetArgs
29 files changed:
Doc/c-api/exceptions.rst
Doc/data/stable_abi.dat
Include/cpython/pyerrors.h
Include/cpython/pystate.h
Include/internal/pycore_pyerrors.h
Include/pyerrors.h
Lib/test/test_capi/test_misc.py
Lib/test/test_exceptions.py
Lib/test/test_stable_abi_ctypes.py
Misc/NEWS.d/next/C API/2023-02-06-16-14-30.gh-issue-101578.PW5fA9.rst [new file with mode: 0644]
Misc/stable_abi.toml
Modules/_testcapi/heaptype.c
Modules/_testcapimodule.c
Modules/gcmodule.c
Objects/dictobject.c
Objects/exceptions.c
Objects/object.c
PC/python3dll.c
Parser/pegen.c
Python/bytecodes.c
Python/ceval.c
Python/errors.c
Python/generated_cases.c.h
Python/import.c
Python/initconfig.c
Python/pystate.c
Python/pythonrun.c
Python/sysmodule.c
Python/traceback.c