Skip to content
Merged
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
Next Next commit
Consolidate changed and removed sections to be more concise
  • Loading branch information
CAM-Gerlach committed Oct 23, 2022
commit 4ed6cfb7950f0f3bab4a48edb079e1c727de6b85
30 changes: 11 additions & 19 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1479,36 +1479,28 @@ Replaced opcodes
+------------------------------------+-----------------------------------+-----------------------------------------+


.. _whatsnew311-removed-opcodes:

Removed Opcodes
---------------

* :opcode:`!COPY_DICT_WITHOUT_KEYS`
* :opcode:`!GEN_START`
* :opcode:`!POP_BLOCK`
* :opcode:`!SETUP_FINALLY`
* :opcode:`!YIELD_FROM`


.. _whatsnew311-changed-opcodes:
.. _whatsnew311-removed-opcodes:
.. _whatsnew311-changed-removed-opcodes:

Changed Opcodes
---------------
Changed/removed opcodes
-----------------------

* Changed :opcode:`JUMP_IF_TRUE_OR_POP` and :opcode:`JUMP_IF_FALSE_OR_POP`
to now be relative rather than absolute.
to be relative rather than absolute.

* Changed :opcode:`MATCH_CLASS` and :opcode:`MATCH_KEYS`
to no longer push an additional boolean value
indicating whether the match succeeded or failed.
Instead, they indicate failure with ``None``
(where a tuple of extracted values would otherwise be).
to no longer push an additional boolean value to indicate success/failure.
Instead, ``None`` is pushed on failure
in place of the tuple of extracted values.

* Changed opcodes that work with exceptions to reflect them
now being represented as one item on the stack instead of three
(see :gh:`89874`).

* Removed :opcode:`!COPY_DICT_WITHOUT_KEYS`, :opcode:`!GEN_START`,
:opcode:`!POP_BLOCK`, :opcode:`!SETUP_FINALLY` and :opcode:`!YIELD_FROM`.


.. _whatsnew311-deprecated:
.. _whatsnew311-python-api-deprecated:
Expand Down