Skip to content

Commit

Permalink
remove the incorrect code unit explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed May 31, 2024
1 parent 8abc8a8 commit b4d2730
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1243,10 +1243,8 @@ 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* code unit. A
code unit is either a bytecode instruction or a cache entry of an
instruction. Column information is 0-indexed utf-8 byte offsets on the
given source line.
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.

This positional information can be missing. A non-exhaustive lists of
cases where this may happen:
Expand Down

0 comments on commit b4d2730

Please sign in to comment.