[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

Terry J. Reedy report at bugs.python.org
Sun Feb 7 09:14:23 EST 2021


Terry J. Reedy <tjreedy at udel.edu> added the comment:


New changeset 863eb7170b3017399fb2b786a1e3feb6457e54c2 by Miss Islington (bot) in branch '3.9':
bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)
https://github.com/python/cpython/commit/863eb7170b3017399fb2b786a1e3feb6457e54c2


----------

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


More information about the Python-bugs-list mailing list