File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3553,11 +3553,11 @@ \section{Python Scopes and Name Spaces \label{scopes}}
35533553Although scopes are determined statically, they are used dynamically.
35543554At any time during execution, there are at least three nested scopes whose
35553555namespaces are directly accessible: the innermost scope, which is searched
3556- first, contains the local names; the namespaces of any enclosing code
3557- blocks (a module, function, or class definition) which are searched starting
3558- with the nearest enclosing scope; the middle scope, searched next, contains
3559- the current module's global names; and the outermost scope (searched last)
3560- is the namespace containing built-in names.
3556+ first, contains the local names; the namespaces of any enclosing
3557+ functions, which are searched starting with the nearest enclosing scope;
3558+ the middle scope, searched next, contains the current module's global names;
3559+ and the outermost scope (searched last) is the namespace containing built-in
3560+ names.
35613561
35623562If a name is declared global, then all references and assignments go
35633563directly to the middle scope containing the module's global names.
You can’t perform that action at this time.
0 commit comments