]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-56374: Clarify documentation of nonlocal (GH-116942) (#117023)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Mar 2024 18:05:27 +0000 (19:05 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2024 18:05:27 +0000 (18:05 +0000)
commit05b2b30436590cbc9f31120e74ccbea4c4466e9a
tree961c9d50935943da7558cb913da71eae0b0beb05
parent1684f7ec1e9eb317d55952fb884f3a513c5910f8
[3.12] gh-56374: Clarify documentation of nonlocal (GH-116942) (#117023)

Define 'nonlocal scopes' in a way that excludes class scopes.
Rearrange the rest of the doc.  Add "Programmer's note".

(cherry picked from commit 025ef7a5f7b424fba8713e448244b952bf897df3)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/reference/simple_stmts.rst