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

Function print_stack

Lib/traceback.py:232–241  ·  view source on GitHub ↗

Print a stack trace from its invocation point. The optional 'f' argument can be used to specify an alternate stack frame at which to start. The optional 'limit' and 'file' arguments have the same meaning as for print_exception().

(f=None, limit=None, file=None)

Source from the content-addressed store, hash-verified

230#
231
232def print_stack(f=None, limit=None, file=None):
233 """Print a stack trace from its invocation point.
234
235 The optional 'f' argument can be used to specify an alternate
236 stack frame at which to start. The optional 'limit' and 'file'
237 arguments have the same meaning as for print_exception().
238 """
239 if f is None:
240 f = sys._getframe().f_back
241 print_list(extract_stack(f, limit=limit), file=file)
242
243
244def format_stack(f=None, limit=None):

Callers

nothing calls this directly

Calls 2

print_listFunction · 0.85
extract_stackFunction · 0.70

Tested by

no test coverage detected