]> granicus.if.org Git - python/commit
PyErr_GivenExceptionMatches(): Check for err==NULL and exc==NULL and
authorBarry Warsaw <barry@python.org>
Tue, 2 May 2000 19:27:51 +0000 (19:27 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 2 May 2000 19:27:51 +0000 (19:27 +0000)
commitfa5c315afa39c264e422336cc017853629cb680c
treee7a3cfadcf0d2b0cf36e8f6929a4cb9749748eda
parent48719d3d1f116f6432040fea1754692038ba227c
PyErr_GivenExceptionMatches(): Check for err==NULL and exc==NULL and
return 0 (exceptions don't match).  This means that if an ImportError
is raised because exceptions.py can't be imported, the interpreter
will exit "cleanly" with an error message instead of just core
dumping.

PyErr_SetFromErrnoWithFilename(), PyErr_SetFromWindowsErrWithFilename():
Don't test on Py_UseClassExceptionsFlag.
Python/errors.c