summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-03-31 13:14:15 (GMT)
committerGitHub <noreply@github.com>2022-03-31 13:14:15 (GMT)
commita00518d9ad9a8f408a9699191019d75dd8406c32 (patch)
treecd66e7a9fd60f08e92fd56a183e1996623123da8 /Doc
parentb36d222110d0d6d84dc8e973ca87d976c2423f5d (diff)
downloadcpython-a00518d9ad9a8f408a9699191019d75dd8406c32.zip
cpython-a00518d9ad9a8f408a9699191019d75dd8406c32.tar.gz
cpython-a00518d9ad9a8f408a9699191019d75dd8406c32.tar.bz2
bpo-47120: Replace the JUMP_ABSOLUTE opcode by the relative JUMP_BACKWARD (GH-32115)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dis.rst12
-rw-r--r--Doc/whatsnew/3.11.rst1
2 files changed, 8 insertions, 5 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 877e11b..d1a0cec 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -895,6 +895,13 @@ iterations of the loop.
Increments bytecode counter by *delta*.
+.. opcode:: JUMP_BACKWARD (delta)
+
+ Decrements bytecode counter by *delta*.
+
+ .. versionadded:: 3.11
+
+
.. opcode:: POP_JUMP_IF_TRUE (target)
If TOS is true, sets the bytecode counter to *target*. TOS is popped.
@@ -974,11 +981,6 @@ iterations of the loop.
.. versionadded:: 3.1
-.. opcode:: JUMP_ABSOLUTE (target)
-
- Set bytecode counter to *target*.
-
-
.. opcode:: JUMP_NO_INTERRUPT (target)
Set bytecode counter to *target*. Do not check for interrupts.
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 129e87e..1bd9587 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -522,6 +522,7 @@ CPython bytecode changes
* :opcode:`JUMP_IF_NOT_EXC_MATCH` no longer pops the active exception.
+* Replaced :opcode:`JUMP_ABSOLUTE` by the relative :opcode:`JUMP_BACKWARD`.
Deprecated
==========