New submission from Pablo Galindo Salgado <pablog...@gmail.com>: Consider this file:
``` x = ( ``` The error that we get is: ❯ python ../a.py File "/home/pablogsal/github/python/master/../a.py", line 6 ^ SyntaxError: unexpected EOF while parsin This is quite uninformative of the actual problem, which is the closed parentheses. The same happens with something like this: ( 1+2 File "/home/pablogsal/github/python/master/lel.py", line 3 ^ SyntaxError: unexpected EOF while parsing With some effort, we can include the location of the unclosed parentheses. ---------- messages: 384630 nosy: pablogsal priority: normal severity: normal status: open title: Improve error messages regarding unclosed parentheses versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42864> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com