Lines Matching full:statement
7 .. index:: pair: compound; statement
12 statement may be contained in one line.
24 header and a 'suite.' The clause headers of a particular compound statement are
53 suite: `stmt_list` NEWLINE | NEWLINE INDENT `statement`+ DEDENT
54 statement: `stmt_list` NEWLINE | `compound_stmt`
64 keyword that cannot start a statement, thus there are no ambiguities (the
76 The :keyword:`if` statement
80 statement: if
84 The :keyword:`if` statement is used for conditional execution:
94 :keyword:`if` statement is executed or evaluated). If all expressions are
100 The :keyword:`while` statement
104 statement: while
105 pair: loop; statement
108 The :keyword:`while` statement is used for repeated execution as long as an
121 statement: break
122 statement: continue
124 A :keyword:`break` statement executed in the first suite terminates the loop
126 statement executed in the first suite skips the rest of the suite and goes back
132 The :keyword:`for` statement
136 statement: for
137 pair: loop; statement
143 The :keyword:`for` statement is used to iterate over the elements of a sequence
159 statement: break
160 statement: continue
162 A :keyword:`break` statement executed in the first suite terminates the loop
164 statement executed in the first suite skips the rest of the suite and continues
207 The :keyword:`try` statement
211 statement: try
215 The :keyword:`try` statement specifies exception handlers and/or cleanup code
249 as if the entire :keyword:`try` statement raised the exception).
255 statement. (This means that if two nested handlers exist for the same
280 statement: return
281 statement: break
282 statement: continue
296 exception or executes a :keyword:`return` or :keyword:`break` statement, the
312 statement: return
313 statement: break
314 statement: continue
316 When a :keyword:`return`, :keyword:`break` or :keyword:`continue` statement is
318 statement, the :keyword:`finally` clause is also executed 'on the way out.' A
319 :keyword:`continue` statement is illegal in the :keyword:`finally` clause. (The
324 statement executed. Since the :keyword:`finally` clause always executes, a
325 :keyword:`return` statement executed in the :keyword:`finally` clause will
338 and information on using the :keyword:`raise` statement to generate exceptions
345 The :keyword:`with` statement
349 statement: with
350 single: as; with statement
354 The :keyword:`with` statement is used to wrap the execution of a block with
363 The execution of the :keyword:`with` statement with one "item" proceeds as follows:
372 #. If a target was included in the :keyword:`with` statement, the return value
377 The :keyword:`with` statement guarantees that if the :meth:`__enter__` method
392 statement following the :keyword:`with` statement.
412 In Python 2.5, the :keyword:`with` statement is only allowed when the
421 :pep:`343` - The "with" statement
423 statement.
436 statement: def
461 A function definition is an executable statement. Its execution binds the
471 statement: @
517 statement: *
518 statement: **
534 statement can be passed around or assigned to another name just like a function
552 statement: class
567 A class definition is an executable statement. It first evaluates the
601 statement.
603 .. [#] A string literal appearing as the first statement in the function body is
607 .. [#] A string literal appearing as the first statement in the class body is