Issue 33306: Improving SyntaxError for unmatched parentheses
Created on 2018-04-18 09:22 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 6516 | merged | serhiy.storchaka, 2018-04-18 09:26 | |
| Messages (2) | |||
|---|---|---|---|
| msg315441 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2018-04-18 09:22 | |
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 |
|||
| msg332011 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2018-12-17 15:34 | |
New changeset 94cf308ee231bfbfaa9ddc50b9764545a1318773 by Serhiy Storchaka in branch 'master': bpo-33306: Improve SyntaxError messages for unbalanced parentheses. (GH-6516) https://github.com/python/cpython/commit/94cf308ee231bfbfaa9ddc50b9764545a1318773 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:59 | admin | set | github: 77487 |
| 2018-12-17 15:46:14 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2018-12-17 15:34:17 | serhiy.storchaka | set | messages: + msg332011 |
| 2018-12-14 16:13:49 | serhiy.storchaka | link | issue35494 dependencies |
| 2018-04-18 09:26:22 | serhiy.storchaka | set | keywords:
+ patch stage: patch review pull_requests: + pull_request6209 |
| 2018-04-18 09:22:20 | serhiy.storchaka | create | |
