ID EN
Inspect

stack

Python 3.11

Return a list of FrameInfo objects for the caller’s stack. The first entry in the returned list represents the caller; the last entry represents the outermost call on the stack.

Syntax

PYTHON
inspect.stack(context=1)

See Also

FrameInfo named tuples FrameInfo