class documentation

A Frame indicates how statements affect control flow in parts of a program.

Frames are introduced when the program enters a new loop, function definition, or try/except/finally block.

A Frame indicates how an exit such as a continue, break, exception, or return affects control flow. For example, a continue statement inside of a loop sends control back to the loop's condition. In nested loops, a continue statement sends control back to the condition of the innermost loop containing the continue statement.

Method __init__ Undocumented
Constant FUNCTION Undocumented
Constant LOOP Undocumented
Constant MODULE Undocumented
Constant TRY_EXCEPT Undocumented
Constant TRY_FINALLY Undocumented
Instance Variable blocks A dictionary with the blocks relevant to the frame.
Instance Variable kind One of LOOP, FUNCTION, TRY_EXCEPT, or TRY_FINALLY.
def __init__(self, kind, **blocks): (source)

Undocumented

FUNCTION: str = (source)

Undocumented

Value
'function'

Undocumented

Value
'loop'

Undocumented

Value
'module'
TRY_EXCEPT: str = (source)

Undocumented

Value
'try-except'
TRY_FINALLY: str = (source)

Undocumented

Value
'try-finally'

A dictionary with the blocks relevant to the frame.

One of LOOP, FUNCTION, TRY_EXCEPT, or TRY_FINALLY.