1 2
``PyThreadState_Clear()`` now warns (and calls ``sys.excepthook``) if the thread state still has an active exception.