summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_pyerrors.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-31 11:53:19 (GMT)
committerGitHub <noreply@github.com>2023-08-31 11:53:19 (GMT)
commit79823c103b66030f10e07e04a5462f101674a4fc (patch)
tree9deb7f8c1c2cc2db31fa7613ea1e7844b4bb2768 /Include/internal/pycore_pyerrors.h
parent059bd4d299b384d2b434ccb106f91cb4bb03bbb1 (diff)
downloadcpython-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 'Include/internal/pycore_pyerrors.h')
-rw-r--r--Include/internal/pycore_pyerrors.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h
index 0bc2058..0f16fb8 100644
--- a/Include/internal/pycore_pyerrors.h
+++ b/Include/internal/pycore_pyerrors.h
@@ -163,6 +163,13 @@ PyAPI_FUNC(Py_ssize_t) _Py_UTF8_Edit_Cost(PyObject *str_a, PyObject *str_b,
void _PyErr_FormatNote(const char *format, ...);
+/* Context manipulation (PEP 3134) */
+
+Py_DEPRECATED(3.12) extern void _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *);
+
+// Export for '_zoneinfo' shared extension
+PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);
+
#ifdef __cplusplus
}
#endif