mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-45711: use exc_value instead of exc_type to determine if exc_info is valid. Add more assertions. (GH-29627)
This commit is contained in:
parent
24c10d2943
commit
c456dfafe9
5 changed files with 93 additions and 36 deletions
|
@ -28,6 +28,8 @@ static inline void _PyErr_ClearExcState(_PyErr_StackItem *exc_state)
|
|||
Py_XDECREF(tb);
|
||||
}
|
||||
|
||||
PyAPI_FUNC(PyObject*) _PyErr_StackItemToExcInfoTuple(
|
||||
_PyErr_StackItem *err_info);
|
||||
|
||||
PyAPI_FUNC(void) _PyErr_Fetch(
|
||||
PyThreadState *tstate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue