commit | 4249f54b28563eff28e3ba428e65905d8112100a | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Fri Aug 22 21:26:19 1997 +0000 |
committer | Barry Warsaw <barry@python.org> | Fri Aug 22 21:26:19 1997 +0000 |
tree | 769e82a02e6a03d88095f21c1cbfd474a5195db7 | |
parent | c0dc92af7d41ecf1d60f4ab29452d7179c039d8c [diff] |
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.