Skip to content

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

4 participants