summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-31 17:24:11 (GMT)
committerGitHub <noreply@github.com>2024-05-31 17:24:11 (GMT)
commit045be7729ef9357f53a01d7c42f742a6111a2bc0 (patch)
tree29429ada7d025163038643ff486889424af4c632
parent738cf216093e844c154f9ba36605f485fac5ff0d (diff)
downloadcpython-045be7729ef9357f53a01d7c42f742a6111a2bc0.zip
cpython-045be7729ef9357f53a01d7c42f742a6111a2bc0.tar.gz
cpython-045be7729ef9357f53a01d7c42f742a6111a2bc0.tar.bz2
[3.12] gh-100117: Fix inaccuracy in documentation of the CodeObject's co_positions field. (GH-119364) (#119870)
gh-100117: Fix inaccuracy in documentation of the CodeObject's co_positions field. (GH-119364) (cherry picked from commit 015b1fdd0ae03f94a5dfda051b020810d1c952dd) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index ac7b0f4..602014d 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1231,7 +1231,7 @@ Methods on code objects
The iterator returns :class:`tuple`\s containing the ``(start_line, end_line,
start_column, end_column)``. The *i-th* tuple corresponds to the
- position of the source code that compiled to the *i-th* instruction.
+ position of the source code that compiled to the *i-th* code unit.
Column information is 0-indexed utf-8 byte offsets on the given source
line.