[issue41119] Wrong error message for list/tuple followed by a colon

2020-06-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d01a3e76ee0519cba3ccdb5de47b25ec2ed7bee4 by Lysandros Nikolaou in branch '3.9': [3.9] bpo-41119: Output correct error message for list/tuple followed by colon (GH-21160) (GH-21172) https://github.com/python/cpython/commit/d01a3e76ee0519c

[issue41119] Wrong error message for list/tuple followed by a colon

2020-06-26 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue41119] Wrong error message for list/tuple followed by a colon

2020-06-26 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +20330 pull_request: https://github.com/python/cpython/pull/21172 ___ Python tracker ___ __

[issue41119] Wrong error message for list/tuple followed by a colon

2020-06-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4b85e60601489f9ee9dd2909e28d89a31566887c by Lysandros Nikolaou in branch 'master': bpo-41119: Output correct error message for list/tuple followed by colon (GH-21160) https://github.com/python/cpython/commit/4b85e60601489f9ee9dd2909e28d8

[issue41119] Wrong error message for list/tuple followed by a colon

2020-06-25 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +20320 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21160 ___ Python tracker _

[issue41119] Wrong error message for list/tuple followed by a colon

2020-06-25 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : Brandt found this out while testing his implementation of the `match` statement. When a list or tuple are followed by a colon without an annotation, the old parser used to say "invalid syntax", while the new parser considers this an annotation and outpu