summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-21 14:04:43 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-21 14:04:43 (GMT)
commitefde146b0c42f2643f96d00896c99a90d501fb69 (patch)
treeccb5f7484b0c55bf005ec9b5eb80558d8adb7e46 /Include
parent6921c13bbbb2c9695edd87331d98f7aa1e48f7f2 (diff)
downloadcpython-efde146b0c42f2643f96d00896c99a90d501fb69.zip
cpython-efde146b0c42f2643f96d00896c99a90d501fb69.tar.gz
cpython-efde146b0c42f2643f96d00896c99a90d501fb69.tar.bz2
Issue #23571: _Py_CheckFunctionResult() now gives the name of the function
which returned an invalid result (result+error or no result without error) in the exception message. Add also unit test to check that the exception contains the name of the function. Special case: the final _PyEval_EvalFrameEx() check doesn't mention the function since it didn't execute a single function but a whole frame.
Diffstat (limited to 'Include')
-rw-r--r--Include/abstract.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 56fbf86..83dbf94 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -267,8 +267,9 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
PyObject *args, PyObject *kw);
#ifndef Py_LIMITED_API
- PyAPI_FUNC(PyObject *) _Py_CheckFunctionResult(PyObject *obj,
- const char *func_name);
+ PyAPI_FUNC(PyObject *) _Py_CheckFunctionResult(PyObject *func,
+ PyObject *result,
+ const char *where);
#endif
/*