Skip to content

bpo-43755: Update docs to reflect that lambda is not allowed in comp_if since 3.9#25231

Merged
pablogsal merged 1 commit into
python:masterfrom
gousaiyang:remove-nocond-grammar
Apr 6, 2021
Merged

bpo-43755: Update docs to reflect that lambda is not allowed in comp_if since 3.9#25231
pablogsal merged 1 commit into
python:masterfrom
gousaiyang:remove-nocond-grammar

Conversation

@gousaiyang

@gousaiyang gousaiyang commented Apr 6, 2021

Copy link
Copy Markdown
Contributor

Update documentation to reflect that unparenthesized lambda expressions can no longer be the expression part in an if clause in comprehensions and generator expressions since Python 3.9.

https://bugs.python.org/issue43755

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @gousaiyang for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-25233 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 6, 2021
…_if` since 3.9 (pythonGH-25231)

(cherry picked from commit 0fdf11e)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
@pablogsal

Copy link
Copy Markdown
Member

Thanks for the PR, @gousaiyang ! 🎉

@gousaiyang
gousaiyang deleted the remove-nocond-grammar branch April 6, 2021 22:16
pablogsal pushed a commit that referenced this pull request Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants