Open
Description
Bug report
In #134036 (PR: #134077) I broke this use-case:
# ex.py
raise AssertionError() from None
print(1,,2)
Running ./python.exe ex.py
on it produces:
» ./python.exe ex.py
File "/Users/sobolev/Desktop/cpython/ex.py", line 1
raise AssertionError() from None
^^^^
SyntaxError: did you forget an expression after 'from'?
Which is not correct. I am fixing it right now, sorry! :(
Activity
pythongh-135422: Fix regression in `SyntaxError` messages after pytho…
SyntaxError
messages after #134036 #135423sobolevn commentedon Jun 12, 2025
This did not make it to 3.14, so I removed the
release-blocker
label. Only 3.15 is affected.[-]Invalid error messages after #134036[/-][+]Invalid error messages after GH-134036[/+]picnixz commentedon Jun 14, 2025
[-]Invalid error messages after GH-134036[/-][+]Invalid error messages after GH-134077[/+]1 remaining item