[Python-checkins] r52472 - in python/branches/release24-maint: Misc/NEWS Python/ceval.c
andrew.kuchling
python-checkins at python.org
Fri Oct 27 15:36:17 CEST 2006
Author: andrew.kuchling
Date: Fri Oct 27 15:36:16 2006
New Revision: 52472
Modified:
python/branches/release24-maint/Misc/NEWS
python/branches/release24-maint/Python/ceval.c
Log:
[Bug #1542016] Report PCALL_POP value. This makes the return value of sys.callstats() match its docstring.
Modified: python/branches/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS (original)
+++ python/branches/release24-maint/Misc/NEWS Fri Oct 27 15:36:16 2006
@@ -13,6 +13,9 @@
Core and builtins
-----------------
+- Bug #1542016: make sys.callstats() match its docstring and return an
+ 11-tuple (only relevant when Python is compiled with -DCALL_PROFILE).
+
Extension Modules
-----------------
Modified: python/branches/release24-maint/Python/ceval.c
==============================================================================
--- python/branches/release24-maint/Python/ceval.c (original)
+++ python/branches/release24-maint/Python/ceval.c Fri Oct 27 15:36:16 2006
@@ -179,10 +179,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