Skip to content

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Jun 5, 2024

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 iritkatriel merged commit eca3f77 into python:main Jun 7, 2024
@iritkatriel 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 iritkatriel added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Sep 2, 2024
@miss-islington-app
Copy link

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

@miss-islington-app
Copy link

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 <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 2, 2024

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

@bedevere-app 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 <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 2, 2024

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

@bedevere-app 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 <[email protected]>
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 <[email protected]>
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