Skip to content

Commit

Permalink
_PyObject_FastCallKeywords() now checks the result
Browse files Browse the repository at this point in the history
Issue #python#27830, Issue python#29259.
  • Loading branch information
vstinner committed Jan 18, 2017
1 parent c525723 commit 2a1b676
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Objects/abstract.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2a1b676

Please sign in to comment.