New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:
The proposed PR refactors the code for assignment expression and removes the NamedStore value of the expr_context_ty enum added in issue35224. This value is undistinguished from Store except two places in Python/ast.c and Python/symtable.c, but in that cases the difference can be handled at one level upper (when process the NamedExpr expression). As a side effect this PR fixes the following minor bug: >>> (True := 1) File "<stdin>", line 1 SyntaxError: cannot delete True ---------- components: Interpreter Core messages: 337136 nosy: emilyemorehouse, gvanrossum, serhiy.storchaka, tim.peters priority: normal severity: normal status: open title: Get rid of NamedStore versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36187> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com