MCPcopy Index your code
hub / github.com/python/cpython / istraceback

Function istraceback

Lib/inspect.py:373–381  ·  view source on GitHub ↗

Return true if the object is a traceback. Traceback objects provide these attributes: tb_frame frame object at this level tb_lasti index of last attempted instruction in bytecode tb_lineno current line number in Python source code tb_next

(object)

Source from the content-addressed store, hash-verified

371 isinstance(object, collections.abc.Awaitable))
372
373def istraceback(object):
374 """Return true if the object is a traceback.
375
376 Traceback objects provide these attributes:
377 tb_frame frame object at this level
378 tb_lasti index of last attempted instruction in bytecode
379 tb_lineno current line number in Python source code
380 tb_next next inner traceback object (called by this level)"""
381 return isinstance(object, types.TracebackType)
382
383def isframe(object):
384 """Return true if the object is a frame object.

Callers 4

getfileFunction · 0.85
findsourceFunction · 0.85
getsourcelinesFunction · 0.85
getframeinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…