Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2018-04-18.09:22:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524043340.4.0.682650639539.issue33306@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-04-18 09:22:20serhiy.storchakasetrecipients: + serhiy.storchaka
2018-04-18 09:22:20serhiy.storchakasetmessageid: <1524043340.4.0.682650639539.issue33306@psf.upfronthosting.co.za>
2018-04-18 09:22:20serhiy.storchakalinkissue33306 messages
2018-04-18 09:22:20serhiy.storchakacreate