class documentation

class FinallyStateTracker: (source)

View In Hierarchy

Track return state for try/except/finally blocks.

Method __init__ Undocumented
Method __repr__ Undocumented
Method check_early_exit Check if we are exiting the frame from within an except block.
Method process Store state.why, or return it from a stored state.
Constant RETURN_STATES Undocumented
Instance Variable stack Undocumented
def __init__(self): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def check_early_exit(self, state) -> bool: (source)

Check if we are exiting the frame from within an except block.

def process(self, op, state, ctx) -> Optional[str]: (source)

Store state.why, or return it from a stored state.

RETURN_STATES: tuple[str, ...] = (source)

Undocumented

Value
('return', 'exception')

Undocumented