[Python-checkins] r52469 - python/trunk/Python/ceval.c

andrew.kuchling python-checkins at python.org
Fri Oct 27 15:22:47 CEST 2006


Author: andrew.kuchling
Date: Fri Oct 27 15:22:46 2006
New Revision: 52469

Modified:
   python/trunk/Python/ceval.c
Log:
[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.

Modified: python/trunk/Python/ceval.c
==============================================================================
--- python/trunk/Python/ceval.c	(original)
+++ python/trunk/Python/ceval.c	Fri Oct 27 15:22:46 2006
@@ -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)


More information about the Python-checkins mailing list