diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2016-08-24 22:39:34 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2016-08-24 22:39:34 (GMT) |
| commit | 53cb489ed08c6940b026c1be6b7aec87eb1f02fd (patch) | |
| tree | 2b09f83e7b13a59d9aeaeee84ddf5cdd598de68d | |
| parent | 577e1f8cb41b76ea763910a47abf42a1952ddec3 (diff) | |
| download | cpython-53cb489ed08c6940b026c1be6b7aec87eb1f02fd.zip cpython-53cb489ed08c6940b026c1be6b7aec87eb1f02fd.tar.gz cpython-53cb489ed08c6940b026c1be6b7aec87eb1f02fd.tar.bz2 | |
_PyObject_FastCallDict(): avoid _Py_CheckFunctionResult()
_PyObject_FastCallDict() only requires _Py_CheckFunctionResult() for the
slow-path. Other cases already check for the result.
| -rw-r--r-- | Objects/abstract.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index d271d94..db9f926 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -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(); |
