[Python-checkins] python/dist/src/Lib profile.py,1.58,

arigo@users.sourceforge.net arigo at users.sourceforge.net
Tue Sep 20 22:53:27 CEST 2005

Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23392

Modified Files:
      Tag: release24-maint
Log Message:
(backport) test and fix for buggy handling of exceptions raised by C
functions, causing the profiler to crash on an AssertionError if the same
Python function catches multiple exceptions from C functions.

Index: profile.py
RCS file: /cvsroot/python/python/dist/src/Lib/profile.py,v
retrieving revision 1.58
retrieving revision
diff -u -d -r1.58 -r1.58.4.1
--- profile.py	12 Jul 2004 23:38:01 -0000	1.58
+++ profile.py	20 Sep 2005 20:53:24 -0000
@@ -360,7 +360,7 @@
         "exception": trace_dispatch_exception,
         "return": trace_dispatch_return,
         "c_call": trace_dispatch_c_call,
-        "c_exception": trace_dispatch_exception,
+        "c_exception": trace_dispatch_return,  # the C function returned
         "c_return": trace_dispatch_return,

More information about the Python-checkins mailing list