New submission from Alexander Belopolsky <[email protected]>:
Attached zip archive can be run directly to reproduce the bug:
$ ./python.exe bug.zip
Traceback (most recent call last):
File "/Users/sasha/Work/python-svn/trunk/Lib/runpy.py", line 162, in
_run_module_as_main
"__main__", fname, loader, pkg_name)
File "/Users/sasha/Work/python-svn/trunk/Lib/runpy.py", line 72, in
_run_code
exec code in run_globals
File "bug.zip/__main__.py", line 9, in <module>
File "/Users/sasha/Work/python-svn/trunk/Lib/pstats.py", line 268, in
strip_dirs
(cc, nc, tt, ct, newcallers))
File "/Users/sasha/Work/python-svn/trunk/Lib/pstats.py", line 516, in
add_func_stats
add_callers(t_callers, callers))
File "/Users/sasha/Work/python-svn/trunk/Lib/pstats.py", line 526, in
add_callers
zip(caller, new_callers[func])])
TypeError: zip argument #1 must support iteration
This is a regression introduced by r60149 which fixed processing of
cProfile data, but broke processing of profile.
It is fairly easy to fix this problem in pstats, but a better solution
may be to make profile output compatible with cProfile.
See also issue1269 and issue1315 .
----------
components: Library (Lib)
files: bug.zip
messages: 95574
nosy: belopolsky, georg.brandl, matthew.fremont, stromnov, therve
severity: normal
status: open
title: Regression in pstats
type: crash
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file15372/bug.zip
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7372>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com