[issue44792] Improve syntax errors for invalid if expressions

2021-08-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 567176249ea95c074eb80199aaf19f3a55aa3954 by Miss Islington (bot) in branch '3.10': bpo-44792: Improve syntax errors for if expressions (GH-27506) (GH-27565)

[issue44792] Improve syntax errors for invalid if expressions

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

[issue44792] Improve syntax errors for invalid if expressions

2021-08-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +26072 pull_request: https://github.com/python/cpython/pull/27565 ___ Python tracker

[issue44792] Improve syntax errors for invalid if expressions

2021-08-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 28b6dc9dd5d1ce6f8aff7e06d4ef9afdc2bc8332 by Miguel Brito in branch 'main': bpo-44792: Improve syntax errors for if expressions (GH-27506) https://github.com/python/cpython/commit/28b6dc9dd5d1ce6f8aff7e06d4ef9afdc2bc8332 --

[issue44792] Improve syntax errors for invalid if expressions

2021-07-31 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44792] Improve syntax errors for invalid if expressions

2021-07-31 Thread Miguel Brito
Change by Miguel Brito : -- keywords: +patch pull_requests: +26020 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27506 ___ Python tracker ___

[issue44792] Improve syntax errors for invalid if expressions

2021-07-31 Thread Miguel Brito
New submission from Miguel Brito : Hi, I was playing around with Python's grammar and noticed that the error message for if expression is generic, so not very informative. I decided to improve it slightly. *From*: ``` >>> a = 42 if True File "", line 1 a = 42 if True