Issue 10422: pstats.py : error when loading multiple stats files (original) (raw)

Issue10422

Created on 2010-11-15 08:42 by sruchet, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pstats.zip sruchet,2010-11-15 08:42 bug fix archive
Messages (2)
msg121216 - (view) Author: Stephane Ruchet (sruchet) Date: 2010-11-15 08:42
When using pstats constructor with multiple files, the add_callers method fails. Actually, add_callers need to add values of tuples, but it uses the "+" operator, that appends tuples. I submit the fix (pstats.py.fix file) and the old one (pstats.py.bug.2.5)
msg121217 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2010-11-15 08:49
This bug should already be fixed in Python 2.6 and 2.7 (see #7372) and 2.5 now accepts only security fixes. I suggest you to upgrade to a newer version of Python. (BTW, thanks for the report and the patch, but it's usually better to avoid zip files and prefer plain diff files)
History
Date User Action Args
2022-04-11 14:57:08 admin set github: 54631
2010-11-15 08:49:16 ezio.melotti set status: open -> closednosy: + ezio.melottimessages: + resolution: out of datestage: resolved
2010-11-15 08:42:28 sruchet create