New submission from Irit Katriel <iritkatr...@gmail.com>:
Following issue45711, the implementation of except* can be simplified - we do not need to use POP_EXCEPT_AND_RERAISE to reraise the exception calculated by PREP_RERAISE_STAR, we can instead 1. Make PREP_RERAISE_STAR not push a dummy lasti to the stack. 2. USE ROT_TWO + POP_EXCEPT + RERAISE. While I'm there, I will move the PREP_RERAISE_STAR helper functions (do_reraise_star etc) to exceptions.c. ---------- assignee: iritkatriel components: Interpreter Core messages: 409458 nosy: iritkatriel priority: normal severity: normal status: open title: Simplify except* implementation and move helpers to exceptions.c versions: Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46221> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com