New submission from Pablo Galindo Salgado <[email protected]>:
Consider the following program:
( a + b + c ] )
The current error is:
>>> ( a + b + c ] )
File "<stdin>", line 1
( a + b + c ] )
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
Which is not bad, but the problem is not that the "(" is not closed (it is) but
that the "]" was never opened. An improvement would be:
>>> ( a + b + c ] )
File "<stdin>", line 1
( a + b + c ] )
^
SyntaxError: closing parenthesis ']' was never opened
----------
messages: 390798
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Improve mismatching parentheses error
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43809>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com