summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-02-10 22:51:45 (GMT)
committerThomas Wouters <thomas@python.org>2006-02-10 22:51:45 (GMT)
commit03ca23d892bae3f3b524f8230e417903c3f5b134 (patch)
tree6700b07ccd67673deda7033d04a965beb314cc33 /Python/ceval.c
parentc49250264d180fadebaebaabd36fd8d75bb9b052 (diff)
downloadcpython-03ca23d892bae3f3b524f8230e417903c3f5b134.zip
cpython-03ca23d892bae3f3b524f8230e417903c3f5b134.tar.gz
cpython-03ca23d892bae3f3b524f8230e417903c3f5b134.tar.bz2
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.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 777e981..501a9a0 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3590,7 +3590,8 @@ call_function(PyObject ***pp_stack, int oparg
Py_DECREF(func);
}
- /* What does this do? */
+ /* Clear the stack of the function object and the arguments,
+ in case they weren't consumed already */
while ((*pp_stack) > pfunc) {
w = EXT_POP(*pp_stack);
Py_DECREF(w);