summaryrefslogtreecommitdiff
path: root/Doc/reference/simple_stmts.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-03 21:18:54 +0000
committerGeorg Brandl <georg@python.org>2009-01-03 21:18:54 +0000
commit48310cd3f2e02ced9ae836ccbcb67e9af3097d62 (patch)
tree04c86b387c11bfd4835a320e76bbb2ee24626e0d /Doc/reference/simple_stmts.rst
parent3d3558a4653fcfcbdcbb75bda5d61e93c48f4d51 (diff)
downloadcpython-git-48310cd3f2e02ced9ae836ccbcb67e9af3097d62.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'Doc/reference/simple_stmts.rst')
-rw-r--r--Doc/reference/simple_stmts.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index a799301f0d..611435a258 100644
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -507,7 +507,7 @@ instance, with its traceback set to its argument), like so::
.. index:: pair: exception; chaining
__cause__ (exception attribute)
__context__ (exception attribute)
-
+
The ``from`` clause is used for exception chaining: if given, the second
*expression* must be another exception class or instance, which will then be
attached to the raised exception as the :attr:`__cause__` attribute (which is
@@ -729,7 +729,7 @@ up to the last dot is used to find a "package"; the final identifier is then
searched inside the package. A package is generally a subdirectory of a
directory on ``sys.path`` that has a file :file:`__init__.py`.
-..
+..
[XXX Can't be
bothered to spell this out right now; see the URL
http://www.python.org/doc/essays/packages.html for more details, also about how
@@ -874,9 +874,9 @@ The :keyword:`nonlocal` statement
: ["=" (`target_list` "=")+ `expression_list`]
: | "nonlocal" `identifier` `augop` `expression_list`
-The :keyword:`nonlocal` statement causes the listed identifiers to refer to
-previously bound variables in the nearest enclosing scope. This is important
-because the default behavior for binding is to search the local namespace
+The :keyword:`nonlocal` statement causes the listed identifiers to refer to
+previously bound variables in the nearest enclosing scope. This is important
+because the default behavior for binding is to search the local namespace
first. The statement allows encapsulated code to rebind variables outside of
the local scope besides the global (module) scope.
@@ -889,7 +889,7 @@ Names listed in a :keyword:`nonlocal` statement, unlike to those listed in a
enclosing scope (the scope in which a new binding should be created cannot
be determined unambiguously).
-Names listed in a :keyword:`nonlocal` statement must not collide with
+Names listed in a :keyword:`nonlocal` statement must not collide with
pre-existing bindings in the local scope.
.. seealso::