[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior
miss-islington
report at bugs.python.org
Sun Feb 7 00:38:57 EST 2021
miss-islington <mariatta.wijaya+miss-islington at gmail.com> added the comment:
New changeset 920bf6a3a656e329c2bcbb761eb8c13c46c8cd05 by Miss Islington (bot) in branch '3.8':
bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)
https://github.com/python/cpython/commit/920bf6a3a656e329c2bcbb761eb8c13c46c8cd05
----------
nosy: +miss-islington
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue16781>
_______________________________________
More information about the Python-bugs-list
mailing list