[issue43017] Improve error message in the parser when using un-parenthesised tuples in comprehensions

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

[issue43017] Improve error message in the parser when using un-parenthesised tuples in comprehensions

2021-01-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 835f14ff8eec10b3d96f821a1eb46a986e00c690 by Pablo Galindo in branch 'master': bpo-43017: Improve error message for unparenthesised tuples in comprehensions (GH24314)

[issue43017] Improve error message in the parser when using un-parenthesised tuples in comprehensions

2021-01-25 Thread Andre Roberge
Andre Roberge added the comment: Such a change would be very useful and appreciated by other users as reported on https://github.com/aroberge/friendly-traceback/issues/167 and asked about on StackOverflow

[issue43017] Improve error message in the parser when using un-parenthesised tuples in comprehensions

2021-01-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +23133 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24314 ___ Python tracker

[issue43017] Improve error message in the parser when using un-parenthesised tuples in comprehensions

2021-01-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43017] Improve error message in the parser when using un-parenthesised tuples in comprehensions

2021-01-24 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : I have seen this confusion many users over the years. Instead of showing: ❯ python -c '[x,z for x,y in something]' File "", line 1 [x,z for x,y in something] ^ SyntaxError: invalid syntax We can show: ❯ ./python -c '[x,z for x,y in