summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.9.rst
diff options
context:
space:
mode:
authorSaiyang Gou <gousaiyang@163.com>2021-04-06 22:15:37 (GMT)
committerGitHub <noreply@github.com>2021-04-06 22:15:37 (GMT)
commit0fdf11e8e901a5f47149232557a7f9726b8177c9 (patch)
tree8dbe118a5d3a035cf21f4517771832a6a0c7f3bf /Doc/whatsnew/3.9.rst
parent50616223d1043f0f83534ffec38709439b8a49ab (diff)
downloadcpython-0fdf11e8e901a5f47149232557a7f9726b8177c9.zip
cpython-0fdf11e8e901a5f47149232557a7f9726b8177c9.tar.gz
cpython-0fdf11e8e901a5f47149232557a7f9726b8177c9.tar.bz2
bpo-43755: Update docs to reflect that lambda is not allowed in `comp_if` since 3.9 (GH-25231)
Diffstat (limited to 'Doc/whatsnew/3.9.rst')
-rw-r--r--Doc/whatsnew/3.9.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 3086930..24c72ee 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -267,6 +267,10 @@ Other Language Changes
:func:`~operator.countOf` of the :mod:`operator` module.
(Contributed by Serhiy Storchaka in :issue:`40824`.)
+* Unparenthesized lambda expressions can no longer be the expression part in an
+ ``if`` clause in comprehensions and generator expressions. See :issue:`41848`
+ and :issue:`43755` for details.
+
New Modules
===========