ID EN
Traceback

walk_stack

Python 3.11

Walk a stack following f.f_back from the given frame, yielding the frame and line number for each frame. If f is None, the current stack is used. This helper is used with StackSummary.extract().

Syntax

PYTHON
traceback.walk_stack(f)

See Also

f.f_back StackSummary.extract()