[Python-checkins] [3.10] gh-71316: Update dis documentation to include changes to jump arguments (GH-95798). (GH-98029)
iritkatriel
webhook-mailer at python.org
Fri Oct 7 10:35:46 EDT 2022
https://github.com/python/cpython/commit/5e87cc2ab5edb0e70c6920bbbf3c190582a29571
commit: 5e87cc2ab5edb0e70c6920bbbf3c190582a29571
branch: 3.10
author: Christopher Chianelli <cchianel at redhat.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2022-10-07T15:35:41+01:00
summary:
[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 at redhat.com>
files:
M Doc/library/dis.rst
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 1df281a7e3d2..9ed0e20cbb56 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`::
More information about the Python-checkins
mailing list