-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Should setting the line number be allowed for PY_RESUME
events?
#113102
Comments
I guess the question is - do we benefit from being able to jump in a For example, a dummy code: def f():
yield a; b = 3;
yield b;
for i in f():
print(i) Being able to jump between I don't think we ever documented this behavior, at least not in However, honestly, I don't think a lot of people are using this feature and I doubt anyone will even notice this. I'm totally fine with simply make the behavior consistent and disallow jump for |
Triage: can this be closed or is there more to do? |
Ah, this issue is still reconsidering the current situation restored by #114349. |
Currently, setting the line number of a frame in a
PY_RESUME
event is allowed, but was accidentally broken in d27acd4However, setting a line number is not allowed for
PY_START
events.Historically both these events were treated as
CALL
events bysys.settrace
, and setting the line number was not allowed.I think, that for consistency, setting the line number of a frame in a
PY_RESUME
event should not be allowed.@gaogaotiantian thoughts?
Linked PRs
The text was updated successfully, but these errors were encountered: