]> granicus.if.org Git - python/commit
cmp_exception gets promoted (essentially) to the C API function
authorBarry Warsaw <barry@python.org>
Fri, 22 Aug 1997 21:26:19 +0000 (21:26 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 22 Aug 1997 21:26:19 +0000 (21:26 +0000)
commit4249f54b28563eff28e3ba428e65905d8112100a
tree769e82a02e6a03d88095f21c1cbfd474a5195db7
parentc0dc92af7d41ecf1d60f4ab29452d7179c039d8c
cmp_exception gets promoted (essentially) to the C API function
PyErr_GivenExceptionMatches().

set_exc_info(): make sure to normalize exceptions.

do_raise(): Use PyErr_NormalizeException() if type is a class.

loop_subscript(): Use PyErr_ExceptionMatches() instead of raw pointer
compare for PyExc_IndexError.
Python/ceval.c