[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f91fc7a679e076cb9a703f6db4d95b63935562e3 by Miss Islington (bot) in branch '3.9': bpo-43755: Update docs to reflect that lambda is not allowed in `comp_if` since 3.9 (GH-25231) (GH-25233)

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the quick fix, Saiyang Gou -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23970 pull_request: https://github.com/python/cpython/pull/25233 ___ Python tracker

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 0fdf11e8e901a5f47149232557a7f9726b8177c9 by Saiyang Gou in branch 'master': bpo-43755: Update docs to reflect that lambda is not allowed in `comp_if` since 3.9 (GH-25231)

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Saiyang Gou
Change by Saiyang Gou : -- keywords: +patch pull_requests: +23968 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25231 ___ Python tracker ___

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Saiyang Gou
Saiyang Gou added the comment: I'll work on it soon. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, nice improvement suggestion for the docs! Do you feel comfortable submitting a small PR for that? -- ___ Python tracker ___

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, lys.nikolaou, pablogsal ___ Python tracker ___ ___ Python-bugs-list

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Saiyang Gou
Saiyang Gou added the comment: OK I didn't find this duplicate issue. After reading that, I think we should update the documentation (https://docs.python.org/3/reference/expressions.html). `comp_if ::= "if" expression_nocond [comp_iter]` can become `comp_if ::= "if" or_test

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks like a duplicate of https://bugs.python.org/issue41848 -- nosy: +xtreak ___ Python tracker ___

[issue43755] lambda expression no longer valid at comp_if in Python 3.9

2021-04-06 Thread Saiyang Gou
New submission from Saiyang Gou : According to the documentation, a lambda expression at the `comp_if` position of a comprehension is allowed (can be parsed as `lambda_expr_nocond`). But this seems broken in Python 3.9 PEG parser. Example: user@host:/$ python3.8 Python 3.8.9 (default, Apr 3