PyDocs

Nav

Python Runtime Services

stack

inspect

function (source)
  • stack(context=1)
Return a list of records for the stack above the caller's frame.
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/stack.
See Also
No see-alsos for inspect/stack
0 Notes
No notes for stack