This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients gvanrossum, lys.nikolaou, pablogsal
Date 2020-11-16.23:49:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605570573.34.0.154206177317.issue42381@roundup.psfhosted.org>
In-reply-to
Content
Apparently we currently don't allow walruses in set literals either:

>>> {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 (as the pep mentions all comprehensions):

There is one special case: an assignment expression occurring in a list, set or dict comprehension or in a generator expression (below collectively referred to as "comprehensions") binds the target in ...
History
Date User Action Args
2020-11-16 23:49:33pablogsalsetrecipients: + pablogsal, gvanrossum, lys.nikolaou
2020-11-16 23:49:33pablogsalsetmessageid: <1605570573.34.0.154206177317.issue42381@roundup.psfhosted.org>
2020-11-16 23:49:33pablogsallinkissue42381 messages
2020-11-16 23:49:33pablogsalcreate