[issue40716] Pegen: improve error messages for unparenthesized from imports with trailing comma

2020-05-21 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40716] Pegen: improve error messages for unparenthesized from imports with trailing comma

2020-05-21 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +19575
pull_request: https://github.com/python/cpython/pull/20302

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40716] Pegen: improve error messages for unparenthesized from imports with trailing comma

2020-05-21 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
nosy: +gvanrossum, lys.nikolaou, pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40716] Pegen: improve error messages for unparenthesized from imports with trailing comma

2020-05-21 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
keywords: +patch
pull_requests: +19570
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20294

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40716] Pegen: improve error messages for unparenthesized from imports with trailing comma

2020-05-21 Thread Batuhan Taskaya

New submission from Batuhan Taskaya :

$ python
Python 3.10.0a0 (heads/bpo-x: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 "", line 1
from x import y,
^
SyntaxError: invalid syntax
>>> 
(.venv) (Python 3.10.0a0) [  8:44ÖS ]  [ 
isidentical@x200:~/cpython/cpython(bpo-x✗) ]
 $ python -X oldparser
Python 3.10.0a0 (heads/bpo-x: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 "", 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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com