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 kj
Recipients bup, kj
Date 2021-04-27.14:51:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619535117.75.0.401112996337.issue43947@roundup.psfhosted.org>
In-reply-to
Content
I'm unable to reproduce it on 3.10:

>>> regass = lambda k: k in {None}
>>> dis.dis(regass)
  1           0 LOAD_FAST                0 (k)
              2 LOAD_CONST               1 (frozenset({None}))
              4 CONTAINS_OP              0
              6 RETURN_VALUE
>>> dis.dis(walrus:=lambda k: k in {None})
  1           0 LOAD_FAST                0 (k)
              2 LOAD_CONST               1 (frozenset({None}))
              4 CONTAINS_OP              0
              6 RETURN_VALUE

On 3.9 and 3.8, I'm able to reproduce your bug.
History
Date User Action Args
2021-04-27 14:51:57kjsetrecipients: + kj, bup
2021-04-27 14:51:57kjsetmessageid: <1619535117.75.0.401112996337.issue43947@roundup.psfhosted.org>
2021-04-27 14:51:57kjlinkissue43947 messages
2021-04-27 14:51:57kjcreate