mirror of
https://github.com/python/cpython.git
synced 2026-06-25 20:36:12 -04:00
4249f54b28
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.