summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorKa-Ping Yee <ping@zesty.ca>2001-03-23 02:46:52 (GMT)
committerKa-Ping Yee <ping@zesty.ca>2001-03-23 02:46:52 (GMT)
commitb5c5132d1ac526dc97f8c51ef12299bde791a807 (patch)
tree68d6dbc1068e0a16051530564b789148cfb516cb /Include
parent37f7b38eb6247564c00c8a355ab12268e8486c4e (diff)
downloadcpython-b5c5132d1ac526dc97f8c51ef12299bde791a807.zip
cpython-b5c5132d1ac526dc97f8c51ef12299bde791a807.tar.gz
cpython-b5c5132d1ac526dc97f8c51ef12299bde791a807.tar.bz2
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')
-rw-r--r--Include/pythonrun.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index c2aa207..e7274ec 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));