Issue 6710: hotshot stats load causes TypeError when multiple files are loaded (original) (raw)
I've attached a script that demonstrates the problem. When run with Python 2.5, it outputs statistics. When run with Python 2.6.2 it generates a TypeError:
python2.6 hotshotbug.py Traceback (most recent call last): File "hotshotbug.py", line 5, in stats.add(hotshot.stats.load('p2')) File "/usr/local/python/2.6/lib/python2.6/pstats.py", line 171, in add self.stats[func] = add_func_stats(old_func_stat, stat) File "/usr/local/python/2.6/lib/python2.6/pstats.py", line 516, in add_func_stats add_callers(t_callers, callers)) File "/usr/local/python/2.6/lib/python2.6/pstats.py", line 526, in add_callers zip(caller, new_callers[func])]) TypeError: zip argument #1 must support iteration