diff options
author | Thomas Wouters <thomas@python.org> | 2006-02-10 22:51:45 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-02-10 22:51:45 (GMT) |
commit | 03ca23d892bae3f3b524f8230e417903c3f5b134 (patch) | |
tree | 6700b07ccd67673deda7033d04a965beb314cc33 /Python/ceval.c | |
parent | c49250264d180fadebaebaabd36fd8d75bb9b052 (diff) | |
download | cpython-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.c | 3 |
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); |