8000 GH-128375: Better instrument for `FOR_ITER` by markshannon · Pull Request #128445 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-128375: Better instrument for FOR_ITER #128445

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

Merged
merged 9 commits into from
Jan 6, 2025
Prev Previous commit
Next Next commit
PEP 8
  • Loading branch information
markshannon committed Jan 3, 2025
commit 29da92ed04e23819a9d4b513571ec5a9e3035a13
6 changes: 3 additions & 3 deletions Lib/test/test_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,9 +905,9 @@ def get_line_branches(func):
base = code.co_firstlineno
return [
(
code_offset_to_line(code, src)-base,
code_offset_to_line(code, left)-base,
code_offset_to_line(code, right)-base
code_offset_to_line(code, src) - base,
code_offset_to_line(code, left) - base,
code_offset_to_line(code, right) - base
) for (src, left, right) in
code.co_branches()
]
Expand Down
0