Skip to content

Commit a27e322

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Doc/library/dis.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ 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+
31+
.. versionchanged:: 3.11
32+
Some instructions are accompanied by one or more inline cache entries,
33+
which take the form of :opcode:`CACHE` instructions. These instructions
34+
are hidden by default, but can be shown by passing ``show_caches=True`` to
35+
any :mod:`dis` utility.
36+
2737

2838
Example: Given the function :func:`myfunc`::
2939

0 commit comments

Comments
 (0)