aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include/internal/pycore_pyerrors.h
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-11-25 09:41:28 +0000
committerGitHub <noreply@github.com>2021-11-25 09:41:28 +0000
commitc456dfafe9f9f6614fbcf2213a93707f0e101f4e (patch)
tree4c83ea059d9dc4eefe8d7e0a414e824c786c5128 /Include/internal/pycore_pyerrors.h
parent24c10d2943c482c4d3ecc71d45df2d8c10fa5bb1 (diff)
downloadcpython-c456dfafe9f9f6614fbcf2213a93707f0e101f4e.tar.gz
cpython-c456dfafe9f9f6614fbcf2213a93707f0e101f4e.zip
bpo-45711: use exc_value instead of exc_type to determine if exc_info is valid. Add more assertions. (GH-29627)
Diffstat (limited to 'Include/internal/pycore_pyerrors.h')
-rw-r--r--Include/internal/pycore_pyerrors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h
index 0f4d41c7e0b..14ea182f4f4 100644
--- a/Include/internal/pycore_pyerrors.h
+++ b/Include/internal/pycore_pyerrors.h
@@ -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,