Skip to content

Conversation

gaogaotiantian
Copy link
Member

@gaogaotiantian gaogaotiantian commented Apr 15, 2025

We can't disable PY_THROW event, so we need to know which event we are dealing with in the callback. Refactored the callback wrappers a bit to make it possible. When the event can't be disabled, don't disable it.

Currently, it only theortically possible to have PY_THROW there because we don't disable return and exception events (they don't repeat). However, it does not hurt to put them there.

…5Pvof.rst

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@gaogaotiantian gaogaotiantian merged commit d19af00 into python:main Apr 15, 2025
39 checks passed
@gaogaotiantian gaogaotiantian deleted the fix-disable-throw branch April 15, 2025 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants