◐ Shell
clean mode source ↗

gh-98831: rewrite RERAISE and CLEANUP_THROW in the instruction definition DSL by iritkatriel · Pull Request #101511 · python/cpython

Conversation

@bedevere-bot

🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit df2e964 🤖

If you want to schedule another build, you need to add the :hammer: test-with-buildbots label again.

gvanrossum

PyObject *tb = PyException_GetTraceback(val);
_PyErr_Restore(tstate, exc, val, tb);
assert(exc && PyExceptionInstance_Check(exc));
Py_INCREF(exc);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Subtle: this is needed because it stays on the stack when we goto exception_unwind, so the latter will POP and DECREF it.

Labels