]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-71316: Update dis documentation to include changes to jump arguments (GH...
authorChristopher Chianelli <cchianel@redhat.com>
Fri, 7 Oct 2022 14:35:41 +0000 (10:35 -0400)
committerGitHub <noreply@github.com>
Fri, 7 Oct 2022 14:35:41 +0000 (15:35 +0100)
(cherry picked from commit 6592a62ec2939323b895c85780da7fd73a640da3)

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

index 1df281a7e3d2b6d350c348531bd5e4d315a12086..9ed0e20cbb568cd870c33203605b332394818718 100644 (file)
@@ -24,6 +24,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.
+
 
 Example: Given the function :func:`myfunc`::