]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sun, 7 Feb 2021 05:28:50 +0000 (00:28 -0500)
committerGitHub <noreply@github.com>
Sun, 7 Feb 2021 05:28:50 +0000 (00:28 -0500)
commit0ec57e25c918b859b9f8d464e34e0ac859c2f8b3
tree38841883fef7dbb9a46d0d115a4d84a881411bfa
parent5f18c223391eef8c7d01241b51a7b2429609dd84
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.
Doc/library/functions.rst