summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-11-05 00:22:12 (GMT)
committerGitHub <noreply@github.com>2019-11-05 00:22:12 (GMT)
commit17269090940aa20f6079a6b9f27ae319f8cdae14 (patch)
treef2c785c3fb8efb972639df7179b6d5b3b315e888 /Include/internal
parentbe434dc0380d9f5c7c800de9943cc46d55fd9491 (diff)
downloadcpython-17269090940aa20f6079a6b9f27ae319f8cdae14.zip
cpython-17269090940aa20f6079a6b9f27ae319f8cdae14.tar.gz
cpython-17269090940aa20f6079a6b9f27ae319f8cdae14.tar.bz2
bpo-38644: Pass tstate to _Py_CheckFunctionResult() (GH-17050)
* Add tstate parameter to _Py_CheckFunctionResult() * Add _PyErr_FormatFromCauseTstate() * Replace PyErr_XXX(...) with _PyErr_XXX(state, ...)
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_pyerrors.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h
index 2efbf4a..edbfdfa 100644
--- a/Include/internal/pycore_pyerrors.h
+++ b/Include/internal/pycore_pyerrors.h
@@ -58,6 +58,12 @@ PyAPI_FUNC(void) _PyErr_NormalizeException(
PyObject **val,
PyObject **tb);
+PyAPI_FUNC(PyObject *) _PyErr_FormatFromCauseTstate(
+ PyThreadState *tstate,
+ PyObject *exception,
+ const char *format,
+ ...);
+
#ifdef __cplusplus
}
#endif