summaryrefslogtreecommitdiff
path: root/Include/pythonrun.h
diff options
context:
space:
mode:
authorKa-Ping Yee <ping@zesty.ca>2001-03-23 02:46:52 +0000
committerKa-Ping Yee <ping@zesty.ca>2001-03-23 02:46:52 +0000
commite81b7824aba9f28b3c252c362ef383c822346ce1 (patch)
tree84fd002716e6bc555d6adbe80fe3b0837e217d29 /Include/pythonrun.h
parent3683c97d18bc6b5f5a8e6ade184467e843ed44b5 (diff)
downloadcpython-e81b7824aba9f28b3c252c362ef383c822346ce1.tar.gz
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__.
Diffstat (limited to 'Include/pythonrun.h')
-rw-r--r--Include/pythonrun.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index c2aa2073c7..e7274ec489 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -59,6 +59,7 @@ DL_IMPORT(struct symtable *) Py_SymtableString(char *, char *, int);
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));