[issue36332] compile() error on AST object with assignment expression

Serhiy Storchaka report at bugs.python.org
Mon Mar 18 02:25:16 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

validate_expr() needs a case for NamedExpr_kind.

I think also that it is better to remove the "default" clause (and move its code after the switch statement) and allow the compiler to warn about missed cases.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36332>
_______________________________________


More information about the Python-bugs-list mailing list