PyDocs

Nav

Python Runtime Services

Traceback

inspect

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

c

code_context
Alias for field number 3

f

filename
Alias for field number 0
function
Alias for field number 2

i

index
Alias for field number 4

l

lineno
Alias for field number 1

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 traceback corresp…
0 Examples
No examples for inspect/Traceback.
See Also
No see-alsos for inspect/Traceback
0 Notes
No notes for Traceback