From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:06:13 +0000 (+0200) Subject: [3.11] gh-100117: Fix inaccuracy in documentation of the CodeObject's co_positions... X-Git-Tag: v3.11.10~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=851821d871e5d26bd154860d202bb653ef02cc47;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-100117: Fix inaccuracy in documentation of the CodeObject's co_positions field. (GH-119364) (#119871) (cherry picked from commit 015b1fdd0ae03f94a5dfda051b020810d1c952dd) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> --- diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 9f3f80294ddb..31035bce9344 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1217,7 +1217,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.