PyDocs

Nav

Python Runtime Services

FrameInfo

inspect

class (source)
  • FrameInfo(frame, filename, lineno, function, code_context, index, *, positions=None)
Changed in version 3.5: Return a named tuple instead of a tuple.
Changed in 3.5, 3.11
  • 3.5: Return a named tuple instead of a tuple.
  • 3.11: FrameInfo is now a class instance (that is backwards compatible with the previous named tuple).
Members of FrameInfo

c

code_context
Alias for field number 4

f

filename
Alias for field number 1
frame
Alias for field number 0
function
Alias for field number 3

i

index
Alias for field number 5

l

lineno
Alias for field number 2

p

positions
A dis.Positions object containing the start line number, end line number, start column offset, and end column offset associated with the instruction being executed by the frame this record correspond…
0 Examples
No examples for inspect/FrameInfo.
See Also
No see-alsos for inspect/FrameInfo
0 Notes
No notes for FrameInfo