Skip to content
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

bpo-46841: Don't scan backwards in bytecode. #31901

Merged
merged 2 commits into from
Mar 16, 2022

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Mar 15, 2022

Avoid scanning backwards when working out whether to trace a line, or whether we are in a yield from.

This should help with #31888.

https://bugs.python.org/issue46841

@markshannon markshannon requested a review from 1st1 as a code owner March 15, 2022 12:27
@markshannon markshannon changed the title bpo-46841: Don't scan backwards in bytecode when looking for execution context. bpo-46841: Don't scan backwards in bytecode. Mar 15, 2022
Copy link
Member

@brandtbucher brandtbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I'll take care of the merge conflict so I can use this over in #31888.

@brandtbucher brandtbucher merged commit 49e1e1e into python:main Mar 16, 2022
@markshannon markshannon deleted the no-backward-scanning branch September 26, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants