PyDocs

Nav

Python Runtime Services

getouterframes

inspect

function (source)
  • getouterframes(frame, context=1)
Get a list of records for a frame and all higher (calling) frames.

Each record contains a frame object, filename, line number, function
name, a list of lines of context, and index within the context.
Changed in 3.5, 3.11
  • 3.5: A list of named tuples FrameInfo(frame, filename, lineno, function, code_context, index) is returned.
  • 3.11: A list of FrameInfo objects is returned.
0 Examples
No examples for inspect/getouterframes.
See Also
No see-alsos for inspect/getouterframes
0 Notes
No notes for getouterframes