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

Function format_stack

tools/python-3.11.9-amd64/Lib/traceback.py:210–214  ·  view source on GitHub ↗

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

(f=None, limit=None)

Source from the content-addressed store, hash-verified

208
209
210def format_stack(f=None, limit=None):
211 """Shorthand for 'format_list(extract_stack(f, limit))'."""
212 if f is None:
213 f = sys._getframe().f_back
214 return format_list(extract_stack(f, limit=limit))
215
216
217def 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