Improving syntax error messages

Terry Reedy tjreedy at
Thu Apr 26 20:56:14 EDT 2018

On 4/26/2018 4:22 PM, Serhiy Storchaka wrote:
> What syntax errors did you see most often? Which of them looks the most 
> weird? How would you like to improve their messages.

One way to research this would be to search for 
"[python] SyntaxError".  There are currently 8142 results, and they can 
be sorted newest first.

The general 'invalid syntax' message must be most common, and perhaps is 
the most puzzling.

Terry Jan Reedy

More information about the Python-list mailing list