/third_party/python/Lib/ |
H A D | code.py | 123 if sys.excepthook is sys.__excepthook__: 127 # If someone has set sys.excepthook, we let that take precedence 129 sys.excepthook(type, value, tb) 143 if sys.excepthook is sys.__excepthook__: 146 # If someone has set sys.excepthook, we let that take precedence 148 sys.excepthook(ei[0], ei[1], last_tb)
|
H A D | threading.py | 31 'excepthook', 'ExceptHookArgs', 'gettrace', 'getprofile'] 1268 from _thread import (_excepthook as excepthook, namespace 1282 def excepthook(args, /): function 1313 # Original value of threading.excepthook 1314 __excepthook__ = excepthook 1322 old_excepthook = excepthook 1323 old_sys_excepthook = _sys.excepthook 1325 raise RuntimeError("threading.excepthook is None") 1327 raise RuntimeError("sys.excepthook is None") 1334 global excepthook [all...] |
H A D | site.py | 556 sys.excepthook(*sys.exc_info()) 576 sys.excepthook(*sys.exc_info())
|
H A D | cgitb.py | 270 """A hook to replace sys.excepthook that shows tracebacks in HTML.""" 331 sys.excepthook = Hook(display=display, logdir=logdir,
|
H A D | weakref.py | 668 sys.excepthook(*sys.exc_info())
|
/third_party/python/Lib/test/support/ |
H A D | threading_helper.py | 159 threading.excepthook. 168 See threading.excepthook() documentation for these attributes. 201 self._old_hook = threading.excepthook 202 threading.excepthook = self._hook 206 threading.excepthook = self._old_hook
|
/third_party/python/Lib/test/ |
H A D | test_code_module.py | 30 if sys.excepthook is sys.__excepthook__: 31 self.sysmod.excepthook = self.sysmod.__excepthook__ 73 self.sysmod.excepthook = hook
|
H A D | audit-tests.py | 274 def excepthook(exc_type, exc_value, exc_tb): function 279 if event == "sys.excepthook": 282 if args[0] != excepthook: 283 raise ValueError(f"Expected {args[0]} == {excepthook}") 287 sys.excepthook = excepthook
|
H A D | test_threading.py | 41 testcase.addCleanup(setattr, threading, 'excepthook', threading.excepthook) 42 threading.excepthook = threading.__excepthook__ 1453 thread = ThreadRunFail(name="excepthook thread") 1465 # threading.excepthook called with thread=None: log the thread 1473 threading.excepthook(args) 1489 # threading.excepthook() silently ignores SystemExit 1505 with support.swap_attr(threading, 'excepthook', hook): 1528 with support.swap_attr(threading, 'excepthook', threading_hook), \ 1529 support.swap_attr(sys, 'excepthook', sys_hoo [all...] |
H A D | test_concurrent_futures.py | 1048 sys.excepthook(*sys.exc_info())
|
H A D | test_sys.py | 152 # bpo-37467: sys.excepthook() must not crash if a filename 170 sys.excepthook(1, '1', 1) 174 # FIXME: testing the code for a lost or replaced excepthook in
|
H A D | _test_multiprocessing.py | 2679 sys.excepthook(*sys.exc_info())
|
/third_party/python/Lib/test/libregrtest/ |
H A D | utils.py | 111 orig_threading_excepthook = threading.excepthook 112 threading.excepthook = regrtest_threading_excepthook
|
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_run.py | 409 assert sys.excepthook == sys.__excepthook__ 416 self.addCleanup(setattr, sys, 'excepthook', sys.__excepthook__) 417 sys.excepthook = lambda t, e, tb: run.print_exception(t) 421 sys.excepthook = lambda: None
|
/third_party/python/Lib/multiprocessing/ |
H A D | resource_tracker.py | 216 sys.excepthook(*sys.exc_info())
|
H A D | resource_sharer.py | 150 sys.excepthook(*sys.exc_info())
|
H A D | forkserver.py | 278 sys.excepthook(*sys.exc_info())
|
/third_party/python/Lib/idlelib/ |
H A D | run.py | 591 if sys.excepthook is sys.__excepthook__: 595 sys.excepthook(*self.user_exc_info)
|
/third_party/python/Include/internal/ |
H A D | pycore_global_strings.h | 259 STRUCT_FOR_ID(excepthook)
|
H A D | pycore_runtime_init.h | 882 INIT_ID(excepthook), \
|
/third_party/python/Python/ |
H A D | pythonrun.c | 810 hook = _PySys_GetAttr(tstate, &_Py_ID(excepthook)); in _PyErr_PrintEx() 811 if (_PySys_Audit(tstate, "sys.excepthook", "OOOO", hook ? hook : Py_None, in _PyErr_PrintEx() 845 PySys_WriteStderr("Error in sys.excepthook:\n"); in _PyErr_PrintEx() 856 PySys_WriteStderr("sys.excepthook is missing\n"); in _PyErr_PrintEx()
|