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

Function format_stack

Lib/traceback.py:254–258  ·  view source on GitHub ↗

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

(f=None, limit=None)

Source from the content-addressed store, hash-verified

252
253
254def format_stack(f=None, limit=None):
255 """Shorthand for 'format_list(extract_stack(f, limit))'."""
256 if f is None:
257 f = sys._getframe().f_back
258 return format_list(extract_stack(f, limit=limit))
259
260
261def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…