ID EN
Inspect

getouterframes

Python 3.11

Get a list of FrameInfo objects for a frame and all outer frames. These frames represent the calls that lead to the creation of frame. The first entry in the returned list represents frame; the last entry represents the outermost call on frame’s stack.

Syntax

PYTHON
inspect.getouterframes(frame, context=1)

See Also

FrameInfo named tuples FrameInfo