classification
Title: Pegen: improve error messages for unparenthesized from imports with trailing comma
Type: Stage: resolved
Components: Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: BTaskaya, gvanrossum, lys.nikolaou, pablogsal
Priority: normal Keywords: patch

Created on 2020-05-21 17:44 by BTaskaya, last changed 2020-05-21 22:40 by pablogsal. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 20294 merged BTaskaya, 2020-05-21 18:17
PR 20302 merged pablogsal, 2020-05-21 20:58
Messages (1)
msg369530 - (view) Author: Batuhan Taskaya (BTaskaya) * (Python triager) Date: 2020-05-21 17:44
$ python
Python 3.10.0a0 (heads/bpo-xxxxx:f2947e354c, May 21 2020, 18:54:57) 
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from x import y,
  File "<stdin>", line 1
    from x import y,
                    ^
SyntaxError: invalid syntax
>>> 
(.venv) (Python 3.10.0a0) [  8:44ÖS ]  [ isidentical@x200:~/cpython/cpython(bpo-xxxxx✗) ]
 $ python -X oldparser
Python 3.10.0a0 (heads/bpo-xxxxx:f2947e354c, May 21 2020, 18:54:57) 
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from x import y,
  File "<stdin>", line 1
SyntaxError: trailing comma not allowed without surrounding parentheses
History
Date User Action Args
2020-05-21 22:40:58pablogsalsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-05-21 20:58:02pablogsalsetpull_requests: + pull_request19575
2020-05-21 20:39:50lys.nikolaousetnosy: + gvanrossum, lys.nikolaou, pablogsal
2020-05-21 18:17:10BTaskayasetkeywords: + patch
stage: patch review
pull_requests: + pull_request19570
2020-05-21 17:44:28BTaskayacreate