FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-93691: fix too broad source locations of with-statement instructions by iritkatriel · Pull Request #120125 · python/cpython · GitHub

/ cpython Public

gh-93691: fix too broad source locations of with-statement instructions - #120125

Merged
iritkatriel merged 3 commits into
python:mainfrom
iritkatriel:with_location
Jun 7, 2024
Merged

gh-93691: fix too broad source locations of with-statement instructions#120125
iritkatriel merged 3 commits into
python:mainfrom
iritkatriel:with_location

Conversation

iritkatriel commented Jun 5, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Previously an exception from the __init__, __enter__ and __exit__ would give the whole with-statement, with the body, as the location. Now it pinpoints which context manager failed.

iritkatriel merged commit eca3f77 into python:main Jun 7, 2024
iritkatriel added the type-bug An unexpected behavior, bug, or error label Jun 10, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
iritkatriel added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Sep 2, 2024

Copy link
Copy Markdown

Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

Copy link
Copy Markdown

Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 2, 2024
…ructions (pythonGH-120125)

(cherry picked from commit eca3f77)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>

bedevere-app Bot commented Sep 2, 2024

Copy link
Copy Markdown

GH-123604 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Sep 2, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 2, 2024
…ructions (pythonGH-120125)

(cherry picked from commit eca3f77)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>

bedevere-app Bot commented Sep 2, 2024

Copy link
Copy Markdown

GH-123605 is a backport of this pull request to the 3.12 branch.

bedevere-app Bot removed the needs backport to 3.12 only security fixes label Sep 2, 2024
iritkatriel added a commit that referenced this pull request Sep 2, 2024
…tructions (GH-120125) (#123605)

gh-93691: fix too broad source locations of with-statement instructions (GH-120125)
(cherry picked from commit eca3f77)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
iritkatriel added a commit that referenced this pull request Sep 2, 2024
…tructions (GH-120125) (#123604)

gh-93691: fix too broad source locations of with-statement instructions (GH-120125)
(cherry picked from commit eca3f77)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL