diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-31 11:53:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 11:53:19 (GMT) |
commit | 79823c103b66030f10e07e04a5462f101674a4fc (patch) | |
tree | 9deb7f8c1c2cc2db31fa7613ea1e7844b4bb2768 /Objects/odictobject.c | |
parent | 059bd4d299b384d2b434ccb106f91cb4bb03bbb1 (diff) | |
download | cpython-79823c103b66030f10e07e04a5462f101674a4fc.zip cpython-79823c103b66030f10e07e04a5462f101674a4fc.tar.gz cpython-79823c103b66030f10e07e04a5462f101674a4fc.tar.bz2 |
gh-106320: Remove private _PyErr_ChainExceptions() (#108713)
Remove _PyErr_ChainExceptions(), _PyErr_ChainExceptions1() and
_PyErr_SetFromPyStatus() functions from the public C API.
* Move the private _PyErr_ChainExceptions() and
_PyErr_ChainExceptions1() function to the internal C API
(pycore_pyerrors.h).
* Move the private _PyErr_SetFromPyStatus() to the internal C API
(pycore_initconfig.h).
* No longer export the _PyErr_ChainExceptions() function.
* Move run_in_subinterp_with_config() from _testcapi to
_testinternalcapi.
Diffstat (limited to 'Objects/odictobject.c')
-rw-r--r-- | Objects/odictobject.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/odictobject.c b/Objects/odictobject.c index d7a0f91..b998963 100644 --- a/Objects/odictobject.c +++ b/Objects/odictobject.c @@ -465,10 +465,11 @@ later: */ #include "Python.h" -#include "pycore_ceval.h" // _PyEval_GetBuiltin() #include "pycore_call.h" // _PyObject_CallNoArgs() -#include "pycore_object.h" // _PyObject_GC_UNTRACK() +#include "pycore_ceval.h" // _PyEval_GetBuiltin() #include "pycore_dict.h" // _Py_dict_lookup() +#include "pycore_object.h" // _PyObject_GC_UNTRACK() +#include "pycore_pyerrors.h" // _PyErr_ChainExceptions1() #include <stddef.h> // offsetof() #include "clinic/odictobject.c.h" |