summaryrefslogtreecommitdiffstats
path: root/Doc/reference/simple_stmts.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-08 09:54:06 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-08 09:54:06 (GMT)
commit47a5aec8362e7a78c10528ef565dc0e6fad1c489 (patch)
tree663221a7565dc2e1b93d4025817ac4c0b6fc830b /Doc/reference/simple_stmts.rst
parent31c6de4f79d2b87f6b6065c37978451cd5fadc68 (diff)
downloadcpython-47a5aec8362e7a78c10528ef565dc0e6fad1c489.zip
cpython-47a5aec8362e7a78c10528ef565dc0e6fad1c489.tar.gz
cpython-47a5aec8362e7a78c10528ef565dc0e6fad1c489.tar.bz2
#2253: fix continue vs. finally docs.
Diffstat (limited to 'Doc/reference/simple_stmts.rst')
-rw-r--r--Doc/reference/simple_stmts.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index 0767170..088e9fc 100644
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -619,9 +619,13 @@ The :keyword:`continue` statement
:keyword:`continue` may only occur syntactically nested in a :keyword:`for` or
:keyword:`while` loop, but not nested in a function or class definition or
-:keyword:`finally` statement within that loop. [#]_ It continues with the next
+:keyword:`finally` clause within that loop. It continues with the next
cycle of the nearest enclosing loop.
+When :keyword:`continue` passes control out of a :keyword:`try` statement with a
+:keyword:`finally` clause, that :keyword:`finally` clause is executed before
+really starting the next loop cycle.
+
.. _import:
.. _from:
@@ -920,9 +924,4 @@ built-in function :func:`eval`. The built-in functions :func:`globals` and
:func:`locals` return the current global and local dictionary, respectively,
which may be useful to pass around for use by :keyword:`exec`.
-.. rubric:: Footnotes
-
-.. [#] It may occur within an :keyword:`except` or :keyword:`else` clause. The
- restriction on occurring in the :keyword:`try` clause is implementor's laziness
- and will eventually be lifted.