PyDocs

Nav

Python Runtime Services

trace

inspect

function (source)
  • trace(context=1)
Return a list of records for the stack below the current exception.
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/trace.
See Also
No see-alsos for inspect/trace
0 Notes
No notes for trace