diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-11-17 01:17:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 01:17:12 (GMT) |
commit | b0aba1fcdc3da952698d99aec2334faa79a8b68c (patch) | |
tree | 7a349807a405f2adf73bd64b766715d543c22b81 /Python/dynamic_annotations.c | |
parent | a57b3d30f66c90f42da751bf82256b9b22961ed0 (diff) | |
download | cpython-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 'Python/dynamic_annotations.c')
0 files changed, 0 insertions, 0 deletions