This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: inconsistency in PCALL conditional code in ceval.c
Type: Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, sgala
Priority: normal Keywords:

Created on 2006-08-17 14:21 by sgala, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg29535 - (view) Author: Santiago Gala (sgala) Date: 2006-08-17 14:21
While there are macros to profile PCALL_POP, the
reporting of it via sys.callstats() is broken.

This patch solves it.

Index: Python/ceval.c
===================================================================
--- Python/ceval.c      (revisión: 51339)
+++ Python/ceval.c      (copia de trabajo)
@@ -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)
msg29536 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-10-27 13:36
Logged In: YES 
user_id=11375

Committed to the trunk in rev. 52469, to 25-maint in rev.
52470, and to 24-maint in rev. 52472.  Thanks for your bug
report!
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43844
2006-08-17 14:21:13sgalacreate