]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43556: Fix the attr names for ast.expr and ast.stmt in the docs (GH-24940)
authorZackery Spytz <zspytz@gmail.com>
Fri, 21 May 2021 20:29:12 +0000 (13:29 -0700)
committerGitHub <noreply@github.com>
Fri, 21 May 2021 20:29:12 +0000 (21:29 +0100)
Doc/library/ast.rst

index d13c7ef63850aef4b558455e1388f7812b0bf054..9328faf53839f9c710a97b3548f48f0fac74c633 100644 (file)
@@ -80,10 +80,11 @@ Node classes
                   end_col_offset
 
       Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have
-      :attr:`lineno`, :attr:`col_offset`, :attr:`lineno`, and :attr:`col_offset`
-      attributes.  The :attr:`lineno` and :attr:`end_lineno` are the first and
-      last line numbers of source text span (1-indexed so the first line is line 1)
-      and the :attr:`col_offset` and :attr:`end_col_offset` are the corresponding
+      :attr:`lineno`, :attr:`col_offset`, :attr:`end_lineno`, and
+      :attr:`end_col_offset` attributes.  The :attr:`lineno` and
+      :attr:`end_lineno` are the first and last line numbers of the source
+      text span (1-indexed so the first line is line 1), and the
+      :attr:`col_offset` and :attr:`end_col_offset` are the corresponding
       UTF-8 byte offsets of the first and last tokens that generated the node.
       The UTF-8 offset is recorded because the parser uses UTF-8 internally.