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

Function stack

tools/python-3.11.9-amd64/Lib/inspect.py:1749–1751  ·  view source on GitHub ↗

Return a list of records for the stack above the caller's frame.

(context=1)

Source from the content-addressed store, hash-verified

1747 return sys._getframe(1) if hasattr(sys, "_getframe") else None
1748
1749def stack(context=1):
1750 """Return a list of records for the stack above the caller's frame."""
1751 return getouterframes(sys._getframe(1), context)
1752
1753def trace(context=1):
1754 """Return a list of records for the stack below the current exception."""

Callers

nothing calls this directly

Calls 1

getouterframesFunction · 0.85

Tested by

no test coverage detected