-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-137200: support frame lineno setter with BRANCH_LEFT
and BRANCH_RIGHT
events
#137229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I want to add a test by setting |
This reverts commit b49f95d.
Yeah, and I try to raise a cpython/Python/generated_cases.c.h Line 10889 in d591b5e
|
|
No need to do that in this PR though. |
Thanks @xuantengh for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…BRANCH_RIGHT` events (pythonGH-137229) (cherry picked from commit d18f73a) Co-authored-by: Xuanteng Huang <44627253+xuantengh@users.noreply.github.com>
GH-137280 is a backport of this pull request to the 3.14 branch. |
Sorry for the late reply, I just found the lineno setter may modify the frame stack of the function being monitored, so the frame stack pointer may be altered after the callback, which makes the Lines 1831 to 1833 in d18f73a
|
ditto
SystemError
to be raised if done in callback fromBRANCH_LEFT
orBRANCH_RIGHT
event #137200