Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 53cb489

Browse files
committed
_PyObject_FastCallDict(): avoid _Py_CheckFunctionResult()
_PyObject_FastCallDict() only requires _Py_CheckFunctionResult() for the slow-path. Other cases already check for the result.
1 parent 577e1f8 commit 53cb489

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/abstract.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,9 +2299,9 @@ _PyObject_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs,
22992299

23002300
result = (*call)(func, tuple, kwargs);
23012301
Py_DECREF(tuple);
2302-
}
23032302

2304-
result = _Py_CheckFunctionResult(func, result, NULL);
2303+
result = _Py_CheckFunctionResult(func, result, NULL);
2304+
}
23052305

23062306
exit:
23072307
Py_LeaveRecursiveCall();

0 commit comments

Comments
 (0)