New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

SyntaxError messages were improved recently in PyPy. [1] [2]  The part of this 
improvement in CPython (showing an expected token) is discussed in 
issue1634034. The following PR implements other part, related to unmatched 
parentheses.

Showing the number of the line containing an unmatched opening parenthesis 
looks as enhancement. But I'm not sure that this change is always an 
enhancement (in comparison with issue1634034). Syntax error for unmatched 
parentheses will be raised even if the code contains other syntax errors before 
unmatched parenthesis.

[1] https://morepypy.blogspot.de/2018/04/improving-syntaxerror-in-pypy.html
[2] 
https://bitbucket.org/pypy/pypy/commits/e66f24650dafbcd2ac1c443af7417eddf8e8f093

----------
components: Interpreter Core
messages: 315441
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Improving SyntaxError for unmatched parentheses
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33306>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to