diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-03-22 18:10:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 18:10:48 (GMT) |
commit | 3468c768ce5e467799758ec70b840da08c3c1da9 (patch) | |
tree | 530832fd5fbd24d8e8fbb0e1148bd456087813f4 /Doc | |
parent | 04adf2df395ded81922c71360a5d66b597471e49 (diff) | |
download | cpython-3468c768ce5e467799758ec70b840da08c3c1da9.zip cpython-3468c768ce5e467799758ec70b840da08c3c1da9.tar.gz cpython-3468c768ce5e467799758ec70b840da08c3c1da9.tar.bz2 |
gh-102859: Remove JUMP_IF_FALSE_OR_POP and JUMP_IF_TRUE_OR_POP (#102870)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/dis.rst | 24 | ||||
-rw-r--r-- | Doc/whatsnew/3.12.rst | 3 |
2 files changed, 3 insertions, 24 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst index f4f47b3..b06fe67 100644 --- a/Doc/library/dis.rst +++ b/Doc/library/dis.rst @@ -1152,30 +1152,6 @@ iterations of the loop. .. versionchanged:: 3.12 This is no longer a pseudo-instruction. - -.. opcode:: JUMP_IF_TRUE_OR_POP (delta) - - If ``STACK[-1]`` is true, increments the bytecode counter by *delta* and leaves - ``STACK[-1]`` on the stack. Otherwise (``STACK[-1]`` is false), ``STACK[-1]`` - is popped. - - .. versionadded:: 3.1 - - .. versionchanged:: 3.11 - The oparg is now a relative delta rather than an absolute target. - -.. opcode:: JUMP_IF_FALSE_OR_POP (delta) - - If ``STACK[-1]`` is false, increments the bytecode counter by *delta* and leaves - ``STACK[-1]`` on the stack. Otherwise (``STACK[-1]`` is true), ``STACK[-1]`` is - popped. - - .. versionadded:: 3.1 - - .. versionchanged:: 3.11 - The oparg is now a relative delta rather than an absolute target. - - .. opcode:: FOR_ITER (delta) ``STACK[-1]`` is an :term:`iterator`. Call its :meth:`~iterator.__next__` method. diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index b7c956d..06ea416 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -435,6 +435,9 @@ CPython bytecode changes :opcode:`LOAD_METHOD` instruction if the low bit of its oparg is set. (Contributed by Ken Jin in :gh:`93429`.) +* Removed the :opcode:`JUMP_IF_FALSE_OR_POP` and :opcode:`JUMP_IF_TRUE_OR_POP` + instructions. (Contributed by Irit Katriel in :gh:`102859`.) + Demos and Tools =============== |