New submission from Batuhan Taskaya <isidenti...@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@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 <rep...@bugs.python.org> <https://bugs.python.org/issue40716> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com