ID EN
Inspect

getinnerframes

Python 3.11

Get a list of FrameInfo objects for a traceback’s frame and all inner frames. These frames represent calls made as a consequence of frame. The first entry in the list represents traceback; the last entry represents where the exception was raised.

Syntax

PYTHON
inspect.getinnerframes(traceback, context=1)

See Also

FrameInfo named tuples FrameInfo