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

Function print_exc

Lib/traceback.py:218–220  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

216# --
217
218def print_exc(limit=None, file=None, chain=True, **kwargs):
219 """Shorthand for 'print_exception(sys.exception(), limit=limit, file=file, chain=chain)'."""
220 print_exception(sys.exception(), limit=limit, file=file, chain=chain, **kwargs)
221
222def format_exc(limit=None, chain=True):
223 """Like print_exc() but return a string."""

Callers 1

runMethod · 0.90

Calls 2

print_exceptionFunction · 0.70
exceptionMethod · 0.45

Tested by 1

runMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…