New submission from Pablo Galindo Salgado <[email protected]>:
Given that is quite common to forgot a comma in containers, function calls,
...etc and that the current error is:
>>> [a, b, c d]
File "<stdin>", line 1
[a, b, c d]
^
SyntaxError: invalid syntax
We could improve the user experience quite a lot if we mention that probably
the user forgot a comma:
>>> [a, b, c d]
File "<stdin>", line 1
[a, b, c d]
^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
----------
messages: 390916
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Improve syntax errors for missing commas
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43822>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com