mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +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. |
||
|---|---|---|
| .. | ||
| next | ||
| 3.5.0.rst | ||
| 3.5.0a1.rst | ||
| 3.5.0a2.rst | ||
| 3.5.0a3.rst | ||
| 3.5.0a4.rst | ||
| 3.5.0b1.rst | ||
| 3.5.0b2.rst | ||
| 3.5.0b3.rst | ||
| 3.5.0b4.rst | ||
| 3.5.0rc1.rst | ||
| 3.5.0rc2.rst | ||
| 3.5.0rc3.rst | ||
| 3.5.0rc4.rst | ||
| 3.5.1.rst | ||
| 3.5.1rc1.rst | ||
| 3.5.2.rst | ||
| 3.5.2rc1.rst | ||
| 3.5.3.rst | ||
| 3.5.3rc1.rst | ||
| 3.5.4.rst | ||
| 3.5.4rc1.rst | ||
| 3.5.5.rst | ||
| 3.5.5rc1.rst | ||
| 3.6.0.rst | ||
| 3.6.0a1.rst | ||
| 3.6.0a2.rst | ||
| 3.6.0a3.rst | ||
| 3.6.0a4.rst | ||
| 3.6.0b1.rst | ||
| 3.6.0b2.rst | ||
| 3.6.0b3.rst | ||
| 3.6.0b4.rst | ||
| 3.6.0rc1.rst | ||
| 3.6.0rc2.rst | ||
| 3.6.1.rst | ||
| 3.6.1rc1.rst | ||
| 3.6.2.rst | ||
| 3.6.2rc1.rst | ||
| 3.6.2rc2.rst | ||
| 3.6.3.rst | ||
| 3.6.3rc1.rst | ||
| 3.6.4.rst | ||
| 3.6.4rc1.rst | ||
| 3.6.5.rst | ||
| 3.6.5rc1.rst | ||
| 3.6.6.rst | ||
| 3.6.6rc1.rst | ||
| 3.7.0.rst | ||
| 3.7.0a1.rst | ||
| 3.7.0a2.rst | ||
| 3.7.0a3.rst | ||
| 3.7.0a4.rst | ||
| 3.7.0b1.rst | ||
| 3.7.0b2.rst | ||
| 3.7.0b3.rst | ||
| 3.7.0b4.rst | ||
| 3.7.0b5.rst | ||
| 3.7.0rc1.rst | ||
| 3.8.0a1.rst | ||
| 3.8.0a2.rst | ||
| 3.8.0a3.rst | ||
| 3.8.0a4.rst | ||