Closed
Description
Feature or enhancement
#133999 gave me an idea. Right now it is:

I suggest making it something similar to:
>>> raise from ValueError
File "<python-input-1>", line 1
raise from ValueError
^^
SyntaxError: invalid syntax, maybe you forgot an exception after `raise` keyword?
Wording is not the best at the moment, but we will figure it out :)
Activity
pythongh-134036: Improve error messages for invalid `raise` statements
raise
statements #134077gh-134036: Improve error messages for invalid `raise` statements (#13…
pythongh-134036: Update test_syntax
gh-134036: Update test_syntax for gh-133999 (#135204)
ZeroIntensity commentedon Jun 11, 2025
Triage: everything done here?
1 remaining item