Skip to content

gh-134036: Improve error messages for invalid raise statements - #134077

Merged
pablogsal merged 1 commit into
python:mainfrom
sobolevn:issue-134036
Jun 6, 2025
Merged

pablogsal merged 1 commit into
python:mainfrom
sobolevn:issue-134036

Conversation

@sobolevn

@sobolevn sobolevn commented May 16, 2025 •

Copy link
Copy Markdown
Member
Снимок экрана 2025-05-16 в 09 07 44

Better error message wordings are welcome!

@lysnikolaou lysnikolaou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! It's simple enough that shouldn't create any problems and it is a clear improvement.

@pablogsal

Copy link
Copy Markdown
Member

Great improvement! ❤️

@pablogsal
pablogsal merged commit 0d9ccc8 into python:main Jun 6, 2025
@Wulian233

Wulian233 commented Jun 6, 2025 •

Copy link
Copy Markdown
Contributor

@pablogsal @sobolevn this commit causes all the latest PR test checks to fail, such as #135002 #131796 and #135198 .

It's all because of the

1 test failed:
test_syntax

@Yhg1s

Yhg1s commented Jun 6, 2025

Copy link
Copy Markdown
Member

I think this passed pre-merge CI but failed post-merge because rebasing it is what broke it... We can roll this back or it can be fixed-forward. If this can't be fixed quickly it should be rolled back. (/cc @hugovk.)

@vstinner

vstinner commented Jun 6, 2025

Copy link
Copy Markdown
Member

I wrote #135204 to update test_syntax, the fix is trivial (update error messages).

Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants