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

Skip to content

Commit 03ca23d

Browse files
committed
Explain the clearing of the stack in a comment in Python/ceval.c's
call_function(), rather than commenting on the lack of an explanation in a comment.
1 parent c492502 commit 03ca23d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/ceval.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3590,7 +3590,8 @@ call_function(PyObject ***pp_stack, int oparg
35903590
Py_DECREF(func);
35913591
}
35923592

3593-
/* What does this do? */
3593+
/* Clear the stack of the function object and the arguments,
3594+
in case they weren't consumed already */
35943595
while ((*pp_stack) > pfunc) {
35953596
w = EXT_POP(*pp_stack);
35963597
Py_DECREF(w);

0 commit comments

Comments
 (0)