From 2a1b676d1f412dcf6e65c3dbc118c81d925fab64 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 18 Jan 2017 11:27:22 +0100 Subject: _PyObject_FastCallKeywords() now checks the result Issue ##27830, Issue #29259. --- Objects/abstract.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Objects/abstract.c b/Objects/abstract.c index 682263d..4b32fed 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -2539,6 +2539,8 @@ _PyObject_FastCallKeywords(PyObject *callable, PyObject **stack, Py_ssize_t narg Py_DECREF(argtuple); Py_XDECREF(kwdict); + result = _Py_CheckFunctionResult(callable, result, NULL); + exit: Py_LeaveRecursiveCall(); return result; -- cgit v0.12