[Python-checkins] CVS: python/dist/src/Include pythonrun.h,2.40,2.41

Ka-Ping Yee ping@users.sourceforge.net
Thu, 22 Mar 2001 18:46:54 -0800


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv9091/Include

Modified Files:
	pythonrun.h 
Log Message:
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__.


Index: pythonrun.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pythonrun.h,v
retrieving revision 2.40
retrieving revision 2.41
diff -C2 -r2.40 -r2.41
*** pythonrun.h	2001/03/22 02:47:57	2.40
--- pythonrun.h	2001/03/23 02:46:52	2.41
***************
*** 60,63 ****
--- 60,64 ----
  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));