]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42381: Document walrus-related syntax changes in whatsnew (GH-23382)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Wed, 18 Nov 2020 23:49:28 +0000 (01:49 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Nov 2020 23:49:28 +0000 (15:49 -0800)
Automerge-Triggered-By: GH:lysnikolaou
Doc/whatsnew/3.10.rst

index 0e5e841ff44d709cedfc8ab8c42e27834baea5e6..95594413440b85ae03978910ab6dc230d52cd205 100644 (file)
@@ -154,6 +154,9 @@ Other Language Changes
   :meth:`~object.__index__` method).
   (Contributed by Serhiy Storchaka in :issue:`37999`.)
 
+* Assignment expressions can now be used unparenthesized within set literals
+  and set comprehensions, as well as in sequence indexes (but not slices).
+
 
 New Modules
 ===========