summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-11-17 01:17:12 (GMT)
committerGitHub <noreply@github.com>2020-11-17 01:17:12 (GMT)
commitb0aba1fcdc3da952698d99aec2334faa79a8b68c (patch)
tree7a349807a405f2adf73bd64b766715d543c22b81 /Misc/NEWS.d
parenta57b3d30f66c90f42da751bf82256b9b22961ed0 (diff)
downloadcpython-b0aba1fcdc3da952698d99aec2334faa79a8b68c.zip
cpython-b0aba1fcdc3da952698d99aec2334faa79a8b68c.tar.gz
cpython-b0aba1fcdc3da952698d99aec2334faa79a8b68c.tar.bz2
bpo-42381: Allow walrus in set literals and set comprehensions (GH-23332)
Currently walruses are not allowerd in set literals and set comprehensions: >>> {y := 4, 4**2, 3**3} File "<stdin>", line 1 {y := 4, 4**2, 3**3} ^ SyntaxError: invalid syntax but they should be allowed as well per PEP 572
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-11-16-23-45-56.bpo-42381.G4AWxL.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-11-16-23-45-56.bpo-42381.G4AWxL.rst b/Misc/NEWS.d/next/Core and Builtins/2020-11-16-23-45-56.bpo-42381.G4AWxL.rst
new file mode 100644
index 0000000..5bee514
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-11-16-23-45-56.bpo-42381.G4AWxL.rst
@@ -0,0 +1,2 @@
+Allow assignment expressions in set literals and set comprehensions as per
+PEP 572. Patch by Pablo Galindo.