This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients Mark.Shannon, erlendaasland, gvanrossum, iritkatriel, xtreak
Date 2021-12-14.20:45:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639514724.72.0.692803501418.issue45292@roundup.psfhosted.org>
In-reply-to
Content
The PR adds two new opcodes. Let's start with the simpler of the two - JUMP_IF_NOT_EG_MATCH.   This is the exception-group variation on JUMP_IF_NOT_EXC_MATCH.

JUMP_IF_NOT_EXC_MATCH checks for a match by checking if the exception is of the given type. The result is boolean.

JUMP_IF_NOT_EG_MATCH checks for a matching by calling .split() on the exception group. The result is two exception groups (the matching part and the non-matching part).

Can we do this without a new opcode?
History
Date User Action Args
2021-12-14 20:45:24iritkatrielsetrecipients: + iritkatriel, gvanrossum, Mark.Shannon, xtreak, erlendaasland
2021-12-14 20:45:24iritkatrielsetmessageid: <1639514724.72.0.692803501418.issue45292@roundup.psfhosted.org>
2021-12-14 20:45:24iritkatriellinkissue45292 messages
2021-12-14 20:45:24iritkatrielcreate