From: Andrew M. Kuchling Date: Fri, 27 Oct 2006 13:22:46 +0000 (+0000) Subject: [Bug #1542016] Report PCALL_POP value. This makes the return value of sys.callstats... X-Git-Tag: v2.6a1~2524 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f3ebe0b1063d41827161d641fe190aab0eed82a;p=python [Bug #1542016] Report PCALL_POP value. This makes the return value of sys.callstats() match its docstring. Backport candidate. Though it's an API change, this is a pretty obscure portion of the API. --- diff --git a/Python/ceval.c b/Python/ceval.c index 99e87e8100..73e8dee790 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -186,10 +186,10 @@ static int pcall[PCALL_NUM]; PyObject * PyEval_GetCallStats(PyObject *self) { - return Py_BuildValue("iiiiiiiiii", + return Py_BuildValue("iiiiiiiiiii", pcall[0], pcall[1], pcall[2], pcall[3], pcall[4], pcall[5], pcall[6], pcall[7], - pcall[8], pcall[9]); + pcall[8], pcall[9], pcall[10]); } #else #define PCALL(O)