]> granicus.if.org Git - python/commit
Add sys.excepthook.
authorKa-Ping Yee <ping@zesty.ca>
Fri, 23 Mar 2001 02:46:52 +0000 (02:46 +0000)
committerKa-Ping Yee <ping@zesty.ca>
Fri, 23 Mar 2001 02:46:52 +0000 (02:46 +0000)
commitb5c5132d1ac526dc97f8c51ef12299bde791a807
tree68d6dbc1068e0a16051530564b789148cfb516cb
parent37f7b38eb6247564c00c8a355ab12268e8486c4e
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__.
Doc/lib/libsys.tex
Include/pythonrun.h
Python/pythonrun.c
Python/sysmodule.c