diff options
| author | Andrew M. Kuchling <amk@amk.ca> | 2006-10-27 13:36:16 (GMT) |
|---|---|---|
| committer | Andrew M. Kuchling <amk@amk.ca> | 2006-10-27 13:36:16 (GMT) |
| commit | 40e0d6f9e510bedc8533753c91ee25732312fdb8 (patch) | |
| tree | 7e5d4a35d317f538587e5e83c028f248656a1407 /Python | |
| parent | c08018ab3e063fede1f2d7395f2c3217d3a18fc0 (diff) | |
| download | cpython-40e0d6f9e510bedc8533753c91ee25732312fdb8.zip cpython-40e0d6f9e510bedc8533753c91ee25732312fdb8.tar.gz cpython-40e0d6f9e510bedc8533753c91ee25732312fdb8.tar.bz2 | |
[Bug #1542016] Report PCALL_POP value. This makes the return value of sys.callstats() match its docstring.
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 04dda25..b9000a6 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -179,10 +179,10 @@ static int pcall[PCALL_NUM]; 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) |
