Thomas Herve added the comment:

The real bug is in fact in add_callers, where it concatenates tuples
instead of adding the values. I'll try to write a test this week-end if
nobody beats me to it.

The attached is against current trunk.

----------
nosy: +therve
Added file: http://bugs.python.org/file8797/1315.diff

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1315>
__________________________________
Index: Lib/pstats.py
===================================================================
--- Lib/pstats.py       (revision 59136)
+++ Lib/pstats.py       (working copy)
@@ -512,7 +512,7 @@
         new_callers[func] = caller
     for func, caller in source.iteritems():
         if func in new_callers:
-            new_callers[func] = caller + new_callers[func]
+            new_callers[func] = tuple([i[0] + i[1] for i in zip(caller, 
new_callers[func])])
         else:
             new_callers[func] = caller
     return new_callers
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to