]> granicus.if.org Git - python/commitdiff
[Bug #1542016] Report PCALL_POP value. This makes the return value of sys.callstats...
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 27 Oct 2006 13:22:46 +0000 (13:22 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 27 Oct 2006 13:22:46 +0000 (13:22 +0000)
Backport candidate.  Though it's an API change, this is a pretty obscure
portion of the API.

Python/ceval.c

index 99e87e8100bf5df4846edfc102a980f1b7fd070e..73e8dee79094f61fa455175e40f684cc421c8cf1 100644 (file)
@@ -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)