_PyObject_FastCallKeywords() now checks the result

Issue ##27830, Issue #29259.
This commit is contained in:
Victor Stinner 2017-01-18 11:27:22 +01:00
parent c52572319c
commit 2a1b676d1f
1 changed files with 2 additions and 0 deletions

View File

@ -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;