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

Function print_exc

Lib/traceback.py:208–210  ·  view source on GitHub ↗

Shorthand for 'print_exception(sys.exception(), limit=limit, file=file, chain=chain)'.

(limit=None, file=None, chain=True)

Source from the content-addressed store, hash-verified

206# --
207
208def print_exc(limit=None, file=None, chain=True):
209 """Shorthand for 'print_exception(sys.exception(), limit=limit, file=file, chain=chain)'."""
210 print_exception(sys.exception(), limit=limit, file=file, chain=chain)
211
212def format_exc(limit=None, chain=True):
213 """Like print_exc() but return a string."""

Callers 1

runMethod · 0.90

Calls 2

print_exceptionFunction · 0.85
exceptionMethod · 0.45

Tested by 1

runMethod · 0.72