[Python-checkins] r61303 - python/trunk/Doc/reference/simple_stmts.rst

georg.brandl python-checkins at python.org
Sat Mar 8 10:54:06 CET 2008


Author: georg.brandl
Date: Sat Mar  8 10:54:06 2008
New Revision: 61303

Modified:
   python/trunk/Doc/reference/simple_stmts.rst
Log:
#2253: fix continue vs. finally docs.


Modified: python/trunk/Doc/reference/simple_stmts.rst
==============================================================================
--- python/trunk/Doc/reference/simple_stmts.rst	(original)
+++ python/trunk/Doc/reference/simple_stmts.rst	Sat Mar  8 10:54:06 2008
@@ -619,9 +619,13 @@
 
 :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 @@
 :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.
 


More information about the Python-checkins mailing list