[issue38469] PEP 572 : assignment expression to a global variable in a comprehension

Pablo Galindo Salgado report at bugs.python.org
Sun Oct 13 17:58:18 EDT 2019


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

I think this is a bug in the symtable_extend_namedexpr_scope function because when visiting the stack in reverse order and finding a function block is always assigning the scope as DEF_NONLOCAL.

Marking also as a release blocker unless Nick, Guido or Emily confirm otherwise.

----------
nosy: +lukasz.langa
priority: normal -> release blocker

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


More information about the Python-bugs-list mailing list