| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
|
||
| # Expect three load None instructions for the no-exception __exit__ call, | ||
| # and one RETURN_VALUE. | ||
| # They should all have the locations of the context manager ('xyz'). |
There was a problem hiding this comment.
Why doesn't the RETURN_VALUE have the location of the return statement?
Sorry, something went wrong.
There was a problem hiding this comment.
The calculation of the value has that location. The return itself occurs after the exit, so it gets the location of the exit (the last instruction executed before the return).
Sorry, something went wrong.
|
Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, something went wrong.
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
|
GH-120786 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
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
|
GH-120787 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
python#120763) pythongh-98442: fix location of with statement's cleanup instructions
python#120763) pythongh-98442: fix location of with statement's cleanup instructions
python#120763) pythongh-98442: fix location of with statement's cleanup instructions
| Back | FazBrowse Home | New Git URL |
Fixes #98442.