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: pstats.py : error when loading multiple stats files
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, sruchet
Priority: normal Keywords:

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:08adminsetgithub: 54631
2010-11-15 08:49:16ezio.melottisetstatus: open -> closed

nosy: + ezio.melotti
messages: + msg121217

resolution: out of date
stage: resolved
2010-11-15 08:42:28sruchetcreate