[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 102ca529ef5d45b9ef70a341705ddf2577914135 by Pablo Galindo in 
branch '3.9':
[3.9] bpo-40769: Allow extra surrounding parentheses for invalid annotated 
assignment rule (GH-20387) (GH-21186)
https://github.com/python/cpython/commit/102ca529ef5d45b9ef70a341705ddf2577914135


--

___
Python tracker 

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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-06-27 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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-06-27 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +20341
pull_request: https://github.com/python/cpython/pull/21186

___
Python tracker 

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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-06-27 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset c8f29ad986f8274fc5fbf889bdd2a211878856b9 by Batuhan Taskaya in 
branch 'master':
bpo-40769: Allow extra surrounding parentheses for invalid annotated assignment 
rule (GH-20387)
https://github.com/python/cpython/commit/c8f29ad986f8274fc5fbf889bdd2a211878856b9


--

___
Python tracker 

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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-05-25 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-05-25 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


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

___
Python tracker 

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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-05-25 Thread Batuhan Taskaya


New submission from Batuhan Taskaya :

$ 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.
>>> (()): int
  File "", line 1
SyntaxError: only single target (not tuple) can be annotated
>>> ((())): int
  File "", line 1
SyntaxError: only single target (not tuple) can be annotated
>>> : int
  File "", line 1
SyntaxError: only single target (not tuple) can be annotated
>>> ([]): int
  File "", line 1
SyntaxError: only single target (not list) can be annotated
>>> (([])): int
  File "", line 1
SyntaxError: only single target (not list) can be annotated

 current 

>>> (()): int
  File "", line 1
(()): int
 ^
SyntaxError: illegal target for annotation
>>> : int
  File "", line 1
: int
   ^
SyntaxError: illegal target for annotation
>>> ([]): int
  File "", line 1
([]): int
 ^
SyntaxError: illegal target for annotation
>>> (([])): int
  File "", line 1
(([])): int
  ^
SyntaxError: illegal target for annotation

--
messages: 369885
nosy: BTaskaya
priority: normal
severity: normal
status: open
title: Pegen: cover extra surrounding parentheses for invalid annotated 
assignment

___
Python tracker 

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



[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-05-25 Thread Batuhan Taskaya


Change by Batuhan Taskaya :


--
versions: +Python 3.10, Python 3.9

___
Python tracker 

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