Skip to content

Commit f42f151

Browse files
[3.10] pythongh-71316: Update dis documentation to include changes to jump arguments (pythonGH-95798).
(cherry picked from commit 6592a62) Co-authored-by: Christopher Chianelli <[email protected]>
1 parent 11945f2 commit f42f151

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/dis.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ interpreter.
2424
Use 2 bytes for each instruction. Previously the number of bytes varied
2525
by instruction.
2626

27+
.. versionchanged:: 3.10
28+
The argument of jump, exception handling and loop instructions is now
29+
the instruction offset rather than the byte offset.
30+
2731

2832
Example: Given the function :func:`myfunc`::
2933

0 commit comments

Comments
 (0)