]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 7 Feb 2021 14:14:16 +0000 (06:14 -0800)
committerGitHub <noreply@github.com>
Sun, 7 Feb 2021 14:14:16 +0000 (09:14 -0500)
commit863eb7170b3017399fb2b786a1e3feb6457e54c2
tree1e11ca1e43ab304dba3acf95a0db0062c4c5e307
parent39aeb9ff9064808b08ec629403edbc36a232369b
bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)

These 3 statements cannot be used at module scope -- nor in exec with one namespace.
(cherry picked from commit 0ec57e25c918b859b9f8d464e34e0ac859c2f8b3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/library/functions.rst