diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-03-18 07:56:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-18 07:56:52 (GMT) |
commit | fe2bbb1869b42222a3f331a3dfb8b304a19a5819 (patch) | |
tree | 0f9e51eb7b9dbfab1d92a1538cef297081a46b55 /Doc/reference/simple_stmts.rst | |
parent | 134cb01cda50f02725575808130b05d2d776693f (diff) | |
download | cpython-fe2bbb1869b42222a3f331a3dfb8b304a19a5819.zip cpython-fe2bbb1869b42222a3f331a3dfb8b304a19a5819.tar.gz cpython-fe2bbb1869b42222a3f331a3dfb8b304a19a5819.tar.bz2 |
bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822)
Diffstat (limited to 'Doc/reference/simple_stmts.rst')
-rw-r--r-- | Doc/reference/simple_stmts.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index ef9a5f0..9186210 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -686,9 +686,8 @@ The :keyword:`continue` statement continue_stmt: "continue" :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` clause within that loop. It continues with the next -cycle of the nearest enclosing loop. +:keyword:`while` loop, but not nested in a function or class definition 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 |