SIGN IN SIGN UP

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
P
Pablo Galindo committed
b0aba1fcdc3da952698d99aec2334faa79a8b68c
Parent: a57b3d3
Committed by GitHub <noreply@github.com> on 11/17/2020, 1:17:12 AM