-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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-44622: Set line number of END_ASYNC_FOR to match that of iterator. #27160
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I would recommend to add a comment about this near the change so is a gir clear why the artificial instruction is getting a line number
Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, @markshannon, I could not cleanly backport this to |
pythonGH-27160) (cherry picked from commit f333ab0)
END_ASYNC_FOR
can only follow the iterator, so giving it the same line number as the iterator is correct even thoughEND_ASYNC_FOR
is artificial.By giving
END_ASYNC_FOR
a real line number, any artificial code following it gets a meaningful line number.https://bugs.python.org/issue44622