]> granicus.if.org Git - python/commitdiff
Explain the clearing of the stack in a comment in Python/ceval.c's
authorThomas Wouters <thomas@python.org>
Fri, 10 Feb 2006 22:51:45 +0000 (22:51 +0000)
committerThomas Wouters <thomas@python.org>
Fri, 10 Feb 2006 22:51:45 +0000 (22:51 +0000)
call_function(), rather than commenting on the lack of an explanation in a
comment.

Python/ceval.c

index 777e981f1d69a6d9cd51b71fcd5ad4cb1ef13bcd..501a9a04bca131e0f9984fc3f9f3021f4a436f4d 100644 (file)
@@ -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);