]> granicus.if.org Git - python/commitdiff
answer a question from a comment
authorArmin Rigo <arigo@tunes.org>
Tue, 28 Mar 2006 19:10:40 +0000 (19:10 +0000)
committerArmin Rigo <arigo@tunes.org>
Tue, 28 Mar 2006 19:10:40 +0000 (19:10 +0000)
Python/ceval.c

index 99dfc2d3b43db9f68f098a0ea70145e6614c8681..cc1eb97fe0b1a492b33533a6fb4e3ee63c37cdfd 100644 (file)
@@ -3659,9 +3659,9 @@ call_function(PyObject ***pp_stack, int oparg
                Py_DECREF(func);
        }
 
-       /* Clear the stack of the function object and the arguments,
-          in case they weren't consumed already.
-          XXX(twouters) when are they not consumed already?
+       /* Clear the stack of the function object.  Also removes
+           the arguments in case they weren't consumed already
+           (fast_function() and err_args() leave them on the stack).
         */
        while ((*pp_stack) > pfunc) {
                w = EXT_POP(*pp_stack);