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

Method excepthook

Lib/test/test_interpreters/utils.py:409–410  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

407 def captured_thread_exception(self):
408 ctx = types.SimpleNamespace(caught=None)
409 def excepthook(args):
410 ctx.caught = args
411 orig_excepthook = threading.excepthook
412 threading.excepthook = excepthook
413 try:

Callers 12

execsitecustomizeFunction · 0.80
execusercustomizeFunction · 0.80
_showtracebackMethod · 0.80
_exitfuncMethod · 0.80
test_excepthookMethod · 0.80
test_tracebackMethod · 0.80
test_tracebackMethod · 0.80
runcodeMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
_serveMethod · 0.80

Calls

no outgoing calls

Tested by 4

test_excepthookMethod · 0.64
test_tracebackMethod · 0.64
test_tracebackMethod · 0.64