diff Python/ceval.c @ 40193:e2e80a016945 legacy-trunk

[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.
author Andrew M. Kuchling <amk@amk.ca>
date Fri, 27 Oct 2006 13:22:46 +0000
parents c7ff02c1559f
children 4e368e82c70d
line wrap: on
line diff
--- a/Python/ceval.c	Fri Oct 27 13:06:25 2006 +0000
+++ b/Python/ceval.c	Fri Oct 27 13:22:46 2006 +0000
@@ -186,10 +186,10 @@
 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)