]> granicus.if.org Git - python/commitdiff
revert part of cefe4f38fa0e, as agreed with Éric
authorSandro Tosi <sandro.tosi@gmail.com>
Tue, 17 Jan 2012 17:32:02 +0000 (18:32 +0100)
committerSandro Tosi <sandro.tosi@gmail.com>
Tue, 17 Jan 2012 17:32:02 +0000 (18:32 +0100)
Doc/glossary.rst

index 37fa9b021748a5eb7635e68d057158eb155a3f63..36a912c29b93045f3d663e14d5a3ece142751818 100644 (file)
@@ -519,11 +519,10 @@ Glossary
    nested scope
       The ability to refer to a variable in an enclosing definition.  For
       instance, a function defined inside another function can refer to
-      variables in the outer function.  Note that nested scopes by default work
-      only for reference and not for assignment.  Local variables both read and
-      write in the innermost scope.  Likewise, global variables read and write
-      to the global namespace.  The :keyword:`nonlocal` allows writing to outer
-      scopes.
+      variables in the outer function.  Note that nested scopes work only for
+      reference and not for assignment which will always write to the innermost
+      scope.  In contrast, local variables both read and write in the innermost
+      scope.  Likewise, global variables read and write to the global namespace.
 
    new-style class
       Any class which inherits from :class:`object`.  This includes all built-in