Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
execsitecustomize
Function · 0.80
execusercustomize
Function · 0.80
_showtraceback
Method · 0.80
_exitfunc
Method · 0.80
test_excepthook
Method · 0.80
test_traceback
Method · 0.80
test_excepthook_thread_None
Method · 0.80
test_traceback
Method · 0.80
runcode
Method · 0.80
main
Function · 0.80
main
Function · 0.80
_serve
Method · 0.80
Calls
no outgoing calls
Tested by
4
test_excepthook
Method · 0.64
test_traceback
Method · 0.64
test_excepthook_thread_None
Method · 0.64
test_traceback
Method · 0.64