diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-29 03:13:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 03:13:41 (GMT) |
commit | c9eefc77a7456c5354beaff9bdba449d3e42be35 (patch) | |
tree | 24d3949af294b2fdee0b20101eb26b51f93dfa04 /Include/internal | |
parent | 921eb8ebf6ae9bd359bc03c24bf1f7537bb498ab (diff) | |
download | cpython-c9eefc77a7456c5354beaff9bdba449d3e42be35.zip cpython-c9eefc77a7456c5354beaff9bdba449d3e42be35.tar.gz cpython-c9eefc77a7456c5354beaff9bdba449d3e42be35.tar.bz2 |
gh-106320: Remove private _PyErr_SetKeyError() (#108607)
Move the private _PyErr_SetKeyError() function to the internal C API
(pycore_pyerrors.h).
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_pyerrors.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h index 5d2ad50..0bc2058 100644 --- a/Include/internal/pycore_pyerrors.h +++ b/Include/internal/pycore_pyerrors.h @@ -16,6 +16,10 @@ extern PyObject* _PyErr_GetHandledException(PyThreadState *); extern void _PyErr_SetHandledException(PyThreadState *, PyObject *); extern void _PyErr_GetExcInfo(PyThreadState *, PyObject **, PyObject **, PyObject **); +// Export for '_testinternalcapi' shared extension +PyAPI_FUNC(void) _PyErr_SetKeyError(PyObject *); + + // Like PyErr_Format(), but saves current exception as __context__ and // __cause__. // Export for '_sqlite3' shared extension. |