summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-03-16 22:18:04 (GMT)
committerGitHub <noreply@github.com>2023-03-16 22:18:04 (GMT)
commit3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1 (patch)
tree22d14446b3d59b7402b59bbad2c153b4ddcb1b21 /Include
parent405739f9166592104a5b0b945de92e28415ae972 (diff)
downloadcpython-3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1.zip
cpython-3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1.tar.gz
cpython-3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1.tar.bz2
gh-102755: Add PyErr_DisplayException(exc) (#102756)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_pylifecycle.h1
-rw-r--r--Include/pythonrun.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h
index e7a3180..a899e84 100644
--- a/Include/internal/pycore_pylifecycle.h
+++ b/Include/internal/pycore_pylifecycle.h
@@ -87,6 +87,7 @@ PyAPI_FUNC(PyObject*) _PyErr_WriteUnraisableDefaultHook(PyObject *unraisable);
PyAPI_FUNC(void) _PyErr_Print(PyThreadState *tstate);
PyAPI_FUNC(void) _PyErr_Display(PyObject *file, PyObject *exception,
PyObject *value, PyObject *tb);
+PyAPI_FUNC(void) _PyErr_DisplayException(PyObject *file, PyObject *exc);
PyAPI_FUNC(void) _PyThreadState_DeleteCurrent(PyThreadState *tstate);
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index 1b208b7..41d82e8 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -12,6 +12,7 @@ PyAPI_FUNC(PyObject *) Py_CompileString(const char *, const char *, int);
PyAPI_FUNC(void) PyErr_Print(void);
PyAPI_FUNC(void) PyErr_PrintEx(int);
PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *);
+PyAPI_FUNC(void) PyErr_DisplayException(PyObject *);
/* Stuff with no proper home (yet) */