bpo-26205: Specify the number of nested scopes (GH-21324) (GH-21341)
* Clarify number of scopes
* Indicate 3 or 4
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 9ed3cd8ba0
)
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
This commit is contained in:
parent
5a1384935e
commit
3f4a9fd912
|
@ -114,8 +114,8 @@ accessible. "Directly accessible" here means that an unqualified reference to a
|
||||||
name attempts to find the name in the namespace.
|
name attempts to find the name in the namespace.
|
||||||
|
|
||||||
Although scopes are determined statically, they are used dynamically. At any
|
Although scopes are determined statically, they are used dynamically. At any
|
||||||
time during execution, there are at least three nested scopes whose namespaces
|
time during execution, At any time during execution, there are 3 or 4 nested
|
||||||
are directly accessible:
|
scopes whose namespaces are directly accessible:
|
||||||
|
|
||||||
* the innermost scope, which is searched first, contains the local names
|
* the innermost scope, which is searched first, contains the local names
|
||||||
* the scopes of any enclosing functions, which are searched starting with the
|
* the scopes of any enclosing functions, which are searched starting with the
|
||||||
|
|
Loading…
Reference in New Issue