-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Source location of return instruction in a with block is incorrect #98442
Closed
Labels
3.12
bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Comments
iritkatriel
added a commit
to iritkatriel/cpython
that referenced
this issue
Oct 19, 2022
@nedbat FYI. |
This is now less wrong, but still there are instructions (in the The return instruction takes its location from there, so it will be fixed once this is.
|
iritkatriel
added a commit
to iritkatriel/cpython
that referenced
this issue
Jun 19, 2024
With the fix in the PR we get:
|
iritkatriel
added a commit
that referenced
this issue
Jun 20, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 20, 2024
pythonGH-120763) (cherry picked from commit 55596ae) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> pythongh-98442: fix location of with statement's cleanup instructions
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 20, 2024
pythonGH-120763) (cherry picked from commit 55596ae) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> pythongh-98442: fix location of with statement's cleanup instructions
mrahtz
pushed a commit
to mrahtz/cpython
that referenced
this issue
Jun 30, 2024
python#120763) pythongh-98442: fix location of with statement's cleanup instructions
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this issue
Jul 11, 2024
python#120763) pythongh-98442: fix location of with statement's cleanup instructions
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
python#120763) pythongh-98442: fix location of with statement's cleanup instructions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.12
bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Output:
Linked PRs
The text was updated successfully, but these errors were encountered: