mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Add a new threading.excepthook() function which handles uncaught Thread.run() exception. It can be overridden to control how uncaught exceptions are handled. threading.ExceptHookArgs is not documented on purpose: it should not be used directly. * threading.excepthook() and threading.ExceptHookArgs. * Add _PyErr_Display(): similar to PyErr_Display(), but accept a 'file' parameter. * Add _thread._excepthook(): C implementation of the exception hook calling _PyErr_Display(). * Add _thread._ExceptHookArgs: structseq type. * Add threading._invoke_excepthook_wrapper() which handles the gory details to ensure that everything remains alive during Python shutdown. * Add unit tests. |
||
|---|---|---|
| .. | ||
| pycore_accu.h | ||
| pycore_atomic.h | ||
| pycore_ceval.h | ||
| pycore_condvar.h | ||
| pycore_context.h | ||
| pycore_fileutils.h | ||
| pycore_getopt.h | ||
| pycore_gil.h | ||
| pycore_hamt.h | ||
| pycore_initconfig.h | ||
| pycore_object.h | ||
| pycore_pathconfig.h | ||
| pycore_pyerrors.h | ||
| pycore_pyhash.h | ||
| pycore_pylifecycle.h | ||
| pycore_pymem.h | ||
| pycore_pystate.h | ||
| pycore_traceback.h | ||
| pycore_tupleobject.h | ||
| pycore_warnings.h | ||