gh-142186: all-local PEP-669 events by P403n1x87 · Pull Request #146182 · python/cpython
added 4 commits
We make the PY_UNWIND monitoring event available as a code-local event to allow trapping on function exit events when an exception bubbles up. This complements the PY_RETURN event by allowing to catch any function exit event.
P403n1x87
marked this pull request as ready for review
P403n1x87
deleted the
gh-142186-pep-669-all-local-events
branch
scoder added a commit that referenced this pull request
ljfp pushed a commit to ljfp/cpython that referenced this pull request
…isableable (pythonGH-146182) * Make the `PY_UNWIND` monitoring event available as a code-local event to allow trapping on function exit events when an exception bubbles up. This complements the PY_RETURN event by allowing to catch any function exit event. * Allow `PY_UNWIND` to be `DISABLE`d; disabling it disables the event for the whole code object. * Do the above for `PY_THROW`, `RAISE`, `EXCEPTION_HANDLED`, and `RERAISE` events.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters