Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update docs
  • Loading branch information
brandtbucher committed Nov 11, 2021
commit 1691c46050be17c0e152205274780724b3ad9b7b
5 changes: 4 additions & 1 deletion Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -873,10 +873,13 @@ All of the following opcodes use their arguments.
.. opcode:: JUMP_IF_NOT_EXC_MATCH (target)

Tests whether the second value on the stack is an exception matching TOS,
and jumps if it is not. Pops two values from the stack.
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_TRUE_OR_POP (target)

Expand Down
2 changes: 2 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ CPython bytecode changes
* Added :opcode:`COPY`, which pushes the *i*-th item to the top of the stack.
The item is not removed from its original location.

* :opcode:`JUMP_IF_NOT_EXC_MATCH` no longer pops the active exception.


Deprecated
==========
Expand Down