]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-71316: Update dis documentation to include changes to jump arguments (GH-95798)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 7 Oct 2022 14:10:46 +0000 (07:10 -0700)
committerGitHub <noreply@github.com>
Fri, 7 Oct 2022 14:10:46 +0000 (07:10 -0700)
(cherry picked from commit 6592a62ec2939323b895c85780da7fd73a640da3)

Co-authored-by: Christopher Chianelli <cchianel@redhat.com>
Doc/library/dis.rst

index f7989ea43dacc3bc73e9b877dce238df3b77947e..d2925929c6c90e176cebcc72b904d0570fab46a1 100644 (file)
@@ -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