[issue40716] Pegen: improve error messages for unparenthesized from imports with trailing comma
Batuhan Taskaya
report at bugs.python.org
Thu May 21 13:44:28 EDT 2020
New submission from Batuhan Taskaya <isidentical at gmail.com>:
$ 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 at 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
----------
messages: 369530
nosy: BTaskaya
priority: normal
severity: normal
status: open
title: Pegen: improve error messages for unparenthesized from imports with trailing comma
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40716>
_______________________________________
More information about the Python-bugs-list
mailing list