Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 2a1b676

Browse files
committed
_PyObject_FastCallKeywords() now checks the result
Issue #python#27830, Issue python#29259.
1 parent c525723 commit 2a1b676

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Objects/abstract.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,6 +2539,8 @@ _PyObject_FastCallKeywords(PyObject *callable, PyObject **stack, Py_ssize_t narg
25392539
Py_DECREF(argtuple);
25402540
Py_XDECREF(kwdict);
25412541

2542+
result = _Py_CheckFunctionResult(callable, result, NULL);
2543+
25422544
exit:
25432545
Py_LeaveRecursiveCall();
25442546
return result;

0 commit comments

Comments
 (0)