Skip to content

Commit cbb9843

Browse files
Christopher-Chianelliiritkatriel
authored andcommitted
pythongh-71316: Update dis documentation to include changes to jump arguments (pythonGH-95798)
1 parent 11945f2 commit cbb9843

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)