Skip to content

Commit

Permalink
bpo-26205: Specify the number of nested scopes (pythonGH-21324)
Browse files Browse the repository at this point in the history
* Clarify number of scopes

* Indicate 3 or 4

Co-authored-by: Terry Jan Reedy <[email protected]>

Co-authored-by: Terry Jan Reedy <[email protected]>
  • Loading branch information
nanjekyejoannah and terryjreedy authored Jul 6, 2020
1 parent e51dd9d commit 9ed3cd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/tutorial/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ accessible. "Directly accessible" here means that an unqualified reference to a
name attempts to find the name in the namespace.

Although scopes are determined statically, they are used dynamically. At any
time during execution, there are at least three nested scopes whose namespaces
are directly accessible:
time during execution, At any time during execution, there are 3 or 4 nested
scopes whose namespaces are directly accessible:

* the innermost scope, which is searched first, contains the local names
* the scopes of any enclosing functions, which are searched starting with the
Expand Down

0 comments on commit 9ed3cd8

Please sign in to comment.