]> granicus.if.org Git - python/commit
Fix bug in profiler modifications detected only in debug builds.
authorFred Drake <fdrake@acm.org>
Thu, 4 Oct 2001 19:26:43 +0000 (19:26 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 4 Oct 2001 19:26:43 +0000 (19:26 +0000)
commit4ec5d5699de7a67dac59a59077ee8d0a777df586
treecd26b96a9ff7c86373300f29f9098e98f6c2fffd
parentd1de6eacf22caf95aba6d76058267c8f5b6543b8
Fix bug in profiler modifications detected only in debug builds.
The new profiler event stream includes a "return" event even when an
exception is being propogated, but the machinery that called the profile
hook did not save & restore the exception.  In debug mode, the exception
was detected during the execution of the profile callback, which did not
have the proper internal flags set for the exception.  Saving & restoring
the exception state solves the problem.
Python/ceval.c