[New-bugs-announce] [issue36187] Get rid of NamedStore

Serhiy Storchaka report at bugs.python.org
Mon Mar 4 11:10:00 EST 2019


New submission from Serhiy Storchaka <storchaka+cpython at 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 <report at bugs.python.org>
<https://bugs.python.org/issue36187>
_______________________________________


More information about the New-bugs-announce mailing list