mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
_PyObject_FastCallDict(): avoid _Py_CheckFunctionResult()
_PyObject_FastCallDict() only requires _Py_CheckFunctionResult() for the slow-path. Other cases already check for the result.
This commit is contained in:
parent
577e1f8cb4
commit
53cb489ed0
1 changed files with 2 additions and 2 deletions
|
@ -2299,9 +2299,9 @@ _PyObject_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs,
|
|||
|
||||
result = (*call)(func, tuple, kwargs);
|
||||
Py_DECREF(tuple);
|
||||
}
|
||||
|
||||
result = _Py_CheckFunctionResult(func, result, NULL);
|
||||
result = _Py_CheckFunctionResult(func, result, NULL);
|
||||
}
|
||||
|
||||
exit:
|
||||
Py_LeaveRecursiveCall();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue