[Python-checkins] bpo-43556: Fix the attr names for ast.expr and ast.stmt in the docs (GH-24940)

iritkatriel webhook-mailer at python.org
Fri May 21 16:29:21 EDT 2021


https://github.com/python/cpython/commit/96c9961bfe1ab471a6bcd4b6e9255af25865dde2
commit: 96c9961bfe1ab471a6bcd4b6e9255af25865dde2
branch: 3.9
author: Zackery Spytz <zspytz at gmail.com>
committer: iritkatriel <iritkatriel at yahoo.com>
date: 2021-05-21T21:29:12+01:00
summary:

bpo-43556: Fix the attr names for ast.expr and ast.stmt in the docs (GH-24940)

files:
M Doc/library/ast.rst

diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index d13c7ef63850a..9328faf53839f 100644
--- a/Doc/library/ast.rst
+++ b/Doc/library/ast.rst
@@ -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.
 



More information about the Python-checkins mailing list