MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / istraceback

Function istraceback

tools/python-3.11.9-amd64/Lib/inspect.py:456–464  ·  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_nex

(object)

Source from the content-addressed store, hash-verified

454 isinstance(object, collections.abc.Awaitable))
455
456def istraceback(object):
457 """Return true if the object is a traceback.
458
459 Traceback objects provide these attributes:
460 tb_frame frame object at this level
461 tb_lasti index of last attempted instruction in bytecode
462 tb_lineno current line number in Python source code
463 tb_next next inner traceback object (called by this level)"""
464 return isinstance(object, types.TracebackType)
465
466def isframe(object):
467 """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