Skip to content

Commit 851821d

Browse files
[3.11] gh-100117: Fix inaccuracy in documentation of the CodeObject's co_positions field. (GH-119364) (#119871)
(cherry picked from commit 015b1fd) Co-authored-by: Irit Katriel <[email protected]>
1 parent 697beec commit 851821d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/datamodel.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ Methods on code objects
12171217

12181218
The iterator returns :class:`tuple`\s containing the ``(start_line, end_line,
12191219
start_column, end_column)``. The *i-th* tuple corresponds to the
1220-
position of the source code that compiled to the *i-th* instruction.
1220+
position of the source code that compiled to the *i-th* code unit.
12211221
Column information is 0-indexed utf-8 byte offsets on the given source
12221222
line.
12231223

0 commit comments

Comments
 (0)