MCPcopy Index your code
hub / github.com/RustPython/RustPython / trace

Function trace

Lib/inspect.py:1663–1667  ·  view source on GitHub ↗

Return a list of records for the stack below the current exception.

(context=1)

Source from the content-addressed store, hash-verified

1661 return getouterframes(sys._getframe(1), context)
1662
1663def trace(context=1):
1664 """Return a list of records for the stack below the current exception."""
1665 exc = sys.exception()
1666 tb = None if exc is None else exc.__traceback__
1667 return getinnerframes(tb, context)
1668
1669
1670# ------------------------------------------------ static version of getattr

Callers

nothing calls this directly

Calls 2

getinnerframesFunction · 0.85
exceptionMethod · 0.45

Tested by

no test coverage detected