[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >From > (https://friendly-traceback.github.io/docs/syntax_tracebacks_en_3.10.html#for-loop-missing-in-operator), > this is what was shown for Python 3.10.0 Yeah, we are not showing that anymore as we only trigger the error when it happens inside

[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c52141200364898818956a73b955f7c04f634dc8 by Pablo Galindo Salgado in branch '3.10': [3.10] bpo-46004: Fix error location for loops with invalid targets (GH-29959). (GH-29961)

[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +28186 pull_request: https://github.com/python/cpython/pull/29961 ___ Python tracker ___

[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 1c7a1c3be08ee911d347fffd2716f3911ba751f9 by Pablo Galindo Salgado in branch 'main': bpo-46004: Fix error location for loops with invalid targets (GH-29959) https://github.com/python/cpython/commit/1c7a1c3be08ee911d347fffd2716f3911ba751f9

[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch, patch pull_requests: +28183, 28184 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29959 ___ Python tracker

[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +28183 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29959 ___ Python tracker

[issue46004] Incorrect bad token identified in 3.10.1

2021-12-06 Thread Andre Roberge
Andre Roberge added the comment: >From >(https://friendly-traceback.github.io/docs/syntax_tracebacks_en_3.10.html#for-loop-missing-in-operator), > this is what was shown for Python 3.10.0 for x range(4): ^^ SyntaxError: invalid syntax. Perhaps you forgot a comma? Same as

[issue46004] Incorrect bad token identified in 3.10.1

2021-12-06 Thread Andre Roberge
New submission from Andre Roberge : In Python 3.10.1, a change occurred compared with 3.10.0 so that an incorrect token is flagged for a SyntaxError. Also, in 3.11.0a2, the suggestion made about having forgotten a comma is incorrect. Python 3.10.1 for x range(4): ^