commit | b0aba1fcdc3da952698d99aec2334faa79a8b68c | [log] [tgz] |
---|---|---|
author | Pablo Galindo <Pablogsal@gmail.com> | Tue Nov 17 01:17:12 2020 +0000 |
committer | GitHub <noreply@github.com> | Tue Nov 17 01:17:12 2020 +0000 |
tree | 7a349807a405f2adf73bd64b766715d543c22b81 | |
parent | a57b3d30f66c90f42da751bf82256b9b22961ed0 [diff] |
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