8000 gh-134036: Improve error messages for invalid `raise` statements by sobolevn · Pull Request #134077 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

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

Merged
merged 1 commit into from
Jun 6, 2025

Conversation

sobolevn
Copy link
Member
@sobolevn sobolevn commented May 16, 2025
Снимок экрана 2025-05-16 в 09 07 44

Better error message wordings are welcome!

Copy link
Member
@lysnikolaou lysnikolaou left a comment

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
Member

Great improvement! ❤️

@pablogsal pablogsal merged commit 0d9ccc8 into python:main Jun 6, 2025
45 checks passed
@Wulian233
Copy link
Contributor
Wulian233 commented Jun 6, 2025

@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
Copy link
Member
Yhg1s commented Jun 6, 2025

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
Copy link
Member
vstinner commented Jun 6, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0