DAGDA SEARCH | Back to results | Support

6.10 The continue statement

Source: https://docs.python.org/2.0/ref/continue.html

Previous Page Up One Level Next Page Python Reference Manual Contents Index
Previous: 6.9 The break statement Up: 6. Simple statements Next: 6.11 The import statement


6.10 The continue statement

continue_stmt:  "continue"

continue may only occur syntactically nested in a for or while loop, but not nested in a function or class definition or try statement within that loop.6.1It continues with the next cycle of the nearest enclosing loop.



Footnotes

... loop.6.1
It may occur within an except or else clause. The restriction on occurring in the try clause is implementor's laziness and will eventually be lifted.


Previous Page Up One Level Next Page Python Reference Manual Contents Index
Previous: 6.9 The break statement Up: 6. Simple statements Next: 6.11 The import statement


See About this document... for information on suggesting changes.