mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-106320: Remove private _PyErr_SetKeyError() (#108607)
Move the private _PyErr_SetKeyError() function to the internal C API (pycore_pyerrors.h).
This commit is contained in:
parent
921eb8ebf6
commit
c9eefc77a7
3 changed files with 5 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue