Skip to content

Commit bfbad0c

Browse files
committed
pythongh-70393: Clarify mention of "middle" scope
1 parent 75a6fad commit bfbad0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/classes.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ directly accessible:
124124
* the outermost scope (searched last) is the namespace containing built-in names
125125

126126
If a name is declared global, then all references and assignments go directly to
127-
the middle scope containing the module's global names. To rebind variables
127+
the next-to-last scope containing the module's global names. To rebind variables
128128
found outside of the innermost scope, the :keyword:`nonlocal` statement can be
129129
used; if not declared nonlocal, those variables are read-only (an attempt to
130130
write to such a variable will simply create a *new* local variable in the

0 commit comments

Comments
 (0)