Home
last modified time | relevance | path

Searched refs:excepthook (Results 1 – 25 of 37) sorted by relevance

12

/third_party/python/Lib/
Dcode.py123 if sys.excepthook is sys.__excepthook__:
129 sys.excepthook(type, value, tb)
143 if sys.excepthook is sys.__excepthook__:
148 sys.excepthook(ei[0], ei[1], last_tb)
Dthreading.py1245 from _thread import (_excepthook as excepthook, unknown
1259 def excepthook(args, /): function
1291 __excepthook__ = excepthook
1299 old_excepthook = excepthook
1300 old_sys_excepthook = _sys.excepthook
1311 global excepthook
1313 hook = excepthook
1332 if local_sys is not None and local_sys.excepthook is not None:
1333 sys_excepthook = local_sys.excepthook
Dsite.py557 sys.excepthook(*sys.exc_info())
577 sys.excepthook(*sys.exc_info())
Dcgitb.py320 sys.excepthook = Hook(display=display, logdir=logdir,
Dweakref.py669 sys.excepthook(*sys.exc_info())
/third_party/python/Lib/test/support/
Dthreading_helper.py200 self._old_hook = threading.excepthook
201 threading.excepthook = self._hook
205 threading.excepthook = self._old_hook
/third_party/python/Lib/test/
Dtest_code_module.py30 if sys.excepthook is sys.__excepthook__:
31 self.sysmod.excepthook = self.sysmod.__excepthook__
73 self.sysmod.excepthook = hook
Daudit-tests.py274 def excepthook(exc_type, exc_value, exc_tb): function
282 if args[0] != excepthook:
287 sys.excepthook = excepthook
Dtest_threading.py40 testcase.addCleanup(setattr, threading, 'excepthook', threading.excepthook)
41 threading.excepthook = threading.__excepthook__
1443 threading.excepthook(args)
1523 threading.excepthook = threading.__excepthook__
Dtest_concurrent_futures.py995 sys.excepthook(*sys.exc_info())
Dtest_sys.py105 sys.excepthook(1, '1', 1)
/third_party/python/Lib/test/libregrtest/
Dutils.py118 orig_threading_excepthook = threading.excepthook
119 threading.excepthook = regrtest_threading_excepthook
/third_party/python/Doc/library/
Dcgitb.rst42 .. index:: single: excepthook() (in module sys)
45 default handling for exceptions by setting the value of :attr:`sys.excepthook`.
Dsys.rst337 .. function:: excepthook(type, value, traceback)
342 ``sys.excepthook`` with three arguments, the exception class, exception
346 customized by assigning another three-argument function to ``sys.excepthook``.
348 .. audit-event:: sys.excepthook hook,type,value,traceback sys.excepthook
350 Raise an auditing event ``sys.excepthook`` with arguments ``hook``,
355 unraisable and ``sys.excepthook`` will be called.
360 and the :func:`threading.excepthook` function handles exception raised
370 ``displayhook``, ``excepthook``, and ``unraisablehook`` at the start of the
372 ``excepthook``, ``unraisablehook`` can be restored in case they happen to
1664 See also :func:`excepthook` which handles uncaught exceptions.
Dthreading.rst58 .. function:: excepthook(args, /)
72 If this function raises an exception, :func:`sys.excepthook` is called to
75 :func:`threading.excepthook` can be overridden to control how uncaught
87 :func:`sys.excepthook` handles uncaught exceptions.
93 Holds the original value of :func:`threading.excepthook`. It is saved so that the
274 :func:`threading.excepthook` is called to handle it. By default,
275 :func:`threading.excepthook` ignores silently :exc:`SystemExit`.
/third_party/python/Lib/idlelib/idle_test/
Dtest_run.py409 assert 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/
Dresource_tracker.py216 sys.excepthook(*sys.exc_info())
Dresource_sharer.py150 sys.excepthook(*sys.exc_info())
Dforkserver.py278 sys.excepthook(*sys.exc_info())
/third_party/python/Lib/idlelib/
Drun.py593 if sys.excepthook is sys.__excepthook__:
597 sys.excepthook(*self.user_exc_info)
/third_party/python/Misc/NEWS.d/
D3.10.0a5.rst617 Make IDLE invoke :func:`sys.excepthook` in normal, 2-process mode. Patch by
D3.8.0b1.rst583 :func:`sys.excepthook`, so the hook gets access to the function which raised
731 Add a new :func:`threading.excepthook` function which handles uncaught
D3.9.0a2.rst114 Add audit hooks for when :func:`sys.excepthook` and
/third_party/python/Python/
Dpythonrun.c40 _Py_IDENTIFIER(excepthook);
/third_party/python/Doc/whatsnew/
D2.1.rst635 :func:`sys.excepthook` can be set to a callable object. When an exception isn't
637 passed to :func:`sys.excepthook`, which can then do whatever it likes. At the

12