|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/continue.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/simple.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/raise.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/genindex.html| ]]
|
Next: 6.10 The continue statement Up: 6. Simple statements Previous: 6.8 The raise statement
6.9 The break statement
break_stmt: "break"
break may only occur syntactically nested in a for or while loop, but not nested in a function or class definition within that loop.
It terminates the nearest enclosing loop, skipping the optional else clause if the loop has one.
If a for loop is terminated by break, the loop control target keeps its current value.
When break passes control out of a try statement with a finally clause, that finally clause is executed before really leaving the loop.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/continue.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/simple.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/raise.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/genindex.html| ]]
|
Next: 6.10 The continue statement Up: 6. Simple statements Previous: 6.8 The raise statement
Send comments on this document to python-docs@python.org.