[ python-Bugs-1542016 ] inconsistency in PCALL conditional code in ceval.c

SourceForge.net noreply at sourceforge.net
Thu Aug 17 16:21:13 CEST 2006


Bugs item #1542016, was opened at 2006-08-17 16:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1542016&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Santiago Gala (sgala)
Assigned to: Nobody/Anonymous (nobody)
Summary: inconsistency in PCALL conditional code in ceval.c

Initial Comment:
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)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1542016&group_id=5470


More information about the Python-bugs-list mailing list