[Python-checkins] bpo-26205: Specify the number of nested scopes (GH-21324) (GH-21342)
Miss Islington (bot)
webhook-mailer at python.org
Sun Jul 5 21:53:44 EDT 2020
https://github.com/python/cpython/commit/7ceb3e3ffc8ee00551df2245544eb60f7debf3af
commit: 7ceb3e3ffc8ee00551df2245544eb60f7debf3af
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-07-05T22:53:40-03:00
summary:
bpo-26205: Specify the number of nested scopes (GH-21324) (GH-21342)
* Clarify number of scopes
* Indicate 3 or 4
Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>
(cherry picked from commit 9ed3cd8ba052b395ab50692bb65988b065d68e27)
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah at users.noreply.github.com>
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah at users.noreply.github.com>
files:
M Doc/tutorial/classes.rst
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 06bdd0d93515e..250d2a9ddb416 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -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
More information about the Python-checkins
mailing list