Skip to content

Commit

Permalink
pythongh-70393: Clarify mention of "middle" scope
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Oct 29, 2022
1 parent 75a6fad commit bfbad0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/tutorial/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ directly accessible:
* the outermost scope (searched last) is the namespace containing built-in names

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

0 comments on commit bfbad0c

Please sign in to comment.