Mercurial > cpython-lru_cache-weakref
diff Include/pythonrun.h @ 17164:b44e77a12978 legacy-trunk
Add sys.excepthook.
Update docstring and library reference section on 'sys' module.
New API PyErr_Display, just for displaying errors, called by excepthook.
Uncaught exceptions now call sys.excepthook; if that fails, we fall back
to calling PyErr_Display directly.
Also comes with sys.__excepthook__ and sys.__displayhook__.
| author | Ka-Ping Yee <ping@zesty.ca> |
|---|---|
| date | Fri, 23 Mar 2001 02:46:52 +0000 |
| parents | 2054cea38754 |
| children | fdb36a0c7e6e |
line wrap: on
line diff
--- a/Include/pythonrun.h Fri Mar 23 00:12:53 2001 +0000 +++ b/Include/pythonrun.h Fri Mar 23 02:46:52 2001 +0000 @@ -59,6 +59,7 @@ DL_IMPORT(void) PyErr_Print(void); DL_IMPORT(void) PyErr_PrintEx(int); +DL_IMPORT(void) PyErr_Display(PyObject *, PyObject *, PyObject *); DL_IMPORT(int) Py_AtExit(void (*func)(void));
