mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bpo-47186: Replace JUMP_IF_NOT_EXC_MATCH by CHECK_EXC_MATCH + jump (GH-32231)
This commit is contained in:
parent
ae9de82e32
commit
04e07c258f
11 changed files with 107 additions and 111 deletions
|
|
@ -628,6 +628,12 @@ iterations of the loop.
|
|||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
.. opcode:: CHECK_EXC_MATCH
|
||||
|
||||
Performs exception matching for ``except``. Tests whether the TOS1 is an exception
|
||||
matching TOS. Pops TOS and pushes the boolean result of the test.
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
.. opcode:: WITH_EXCEPT_START
|
||||
|
||||
|
|
@ -916,18 +922,6 @@ iterations of the loop.
|
|||
.. versionadded:: 3.1
|
||||
|
||||
|
||||
.. opcode:: JUMP_IF_NOT_EXC_MATCH (target)
|
||||
|
||||
Performs exception matching for ``except``.
|
||||
Tests whether the second value on the stack is an exception matching TOS,
|
||||
and jumps if it is not. Pops one value from the stack.
|
||||
|
||||
.. versionadded:: 3.9
|
||||
|
||||
.. versionchanged:: 3.11
|
||||
This opcode no longer pops the active exception.
|
||||
|
||||
|
||||
.. opcode:: JUMP_IF_NOT_EG_MATCH (target)
|
||||
|
||||
Performs exception matching for ``except*``. Applies ``split(TOS)`` on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue