osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Improving syntax error messages


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 stackoverflow.com 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