Ken Jin <kenjin4...@gmail.com> added the comment:
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. ---------- nosy: +kj versions: -Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43947> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com