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

Function format_stack

Lib/traceback.py:244–248  ·  view source on GitHub ↗

Shorthand for 'format_list(extract_stack(f, limit))'.

(f=None, limit=None)

Source from the content-addressed store, hash-verified

242
243
244def format_stack(f=None, limit=None):
245 """Shorthand for 'format_list(extract_stack(f, limit))'."""
246 if f is None:
247 f = sys._getframe().f_back
248 return format_list(extract_stack(f, limit=limit))
249
250
251def extract_stack(f=None, limit=None):

Callers

nothing calls this directly

Calls 2

format_listFunction · 0.85
extract_stackFunction · 0.70

Tested by

no test coverage detected