]> 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 05:38:54 +0000 (21:38 -0800)
committerGitHub <noreply@github.com>
Sun, 7 Feb 2021 05:38:54 +0000 (21:38 -0800)
commit920bf6a3a656e329c2bcbb761eb8c13c46c8cd05
treeb7e1a44bb35bdb12d99c08c3981c9ee67767f04b
parentb4796875d598b34f5f21cb13a8d3551574532595
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>
Doc/library/functions.rst