[Python-checkins] gh-71316: Update dis documentation to include changes to jump arguments (GH-95798)

miss-islington webhook-mailer at python.org
Fri Oct 7 10:11:04 EDT 2022


https://github.com/python/cpython/commit/245ea1f5007735c2d6e28a84f23e294880e0dec4
commit: 245ea1f5007735c2d6e28a84f23e294880e0dec4
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-07T07:10:46-07:00
summary:

gh-71316: Update dis documentation to include changes to jump arguments (GH-95798)

(cherry picked from commit 6592a62ec2939323b895c85780da7fd73a640da3)

Co-authored-by: Christopher Chianelli <cchianel at redhat.com>

files:
M Doc/library/dis.rst

diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index f7989ea43dac..d2925929c6c9 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -30,6 +30,10 @@ interpreter.
       Use 2 bytes for each instruction. Previously the number of bytes varied
       by instruction.
 
+   .. versionchanged:: 3.10
+      The argument of jump, exception handling and loop instructions is now
+      the instruction offset rather than the byte offset.
+
    .. versionchanged:: 3.11
       Some instructions are accompanied by one or more inline cache entries,
       which take the form of :opcode:`CACHE` instructions. These instructions



More information about the Python-checkins mailing list