]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38469: Handle named expression scope with global/nonlocal keywords (GH-16755)
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 14 Oct 2019 04:18:05 +0000 (05:18 +0100)
committerGitHub <noreply@github.com>
Mon, 14 Oct 2019 04:18:05 +0000 (05:18 +0100)
commitfd5c414880b2e05720b9cf14ab0b0d7ae2b7d925
treeeedbde8610788bd4ea9577b0aa94f1af10cde089
parent8a6cbf8adb68aa2c43a48769af92e50d5ca1539d
bpo-38469: Handle named expression scope with global/nonlocal keywords (GH-16755)

The symbol table handing of PEP572's assignment expressions is not resolving correctly the scope of some variables in presence of global/nonlocal keywords in conjunction with comprehensions.
Lib/test/test_named_expressions.py
Misc/NEWS.d/next/Core and Builtins/2019-10-13-23-41-38.bpo-38469.9kmuQj.rst [new file with mode: 0644]
Python/symtable.c