summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Chianelli <cchianel@redhat.com>2022-10-07 14:35:41 (GMT)
committerGitHub <noreply@github.com>2022-10-07 14:35:41 (GMT)
commit5e87cc2ab5edb0e70c6920bbbf3c190582a29571 (patch)
tree21a773f9b8ec2340220baac8edbcf45de252c024
parent11945f2cf6ae4aeb8202f481e8881ec0fbfabe89 (diff)
downloadcpython-5e87cc2ab5edb0e70c6920bbbf3c190582a29571.zip
cpython-5e87cc2ab5edb0e70c6920bbbf3c190582a29571.tar.gz
cpython-5e87cc2ab5edb0e70c6920bbbf3c190582a29571.tar.bz2
[3.10] gh-71316: Update dis documentation to include changes to jump arguments (GH-95798). (GH-98029)
(cherry picked from commit 6592a62ec2939323b895c85780da7fd73a640da3) Co-authored-by: Christopher Chianelli <cchianel@redhat.com>
-rw-r--r--Doc/library/dis.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 1df281a7..9ed0e20 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -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`::