From: Thomas Wouters Date: Fri, 10 Feb 2006 22:51:45 +0000 (+0000) Subject: Explain the clearing of the stack in a comment in Python/ceval.c's X-Git-Tag: v2.5a0~693 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03ca23d892bae3f3b524f8230e417903c3f5b134;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Python/ceval.c b/Python/ceval.c index 777e981f1d69..501a9a04bca1 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);