Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bffb137

Browse filesBrowse files
authored
Fix incorrect links in ast docs (GH-23017)
1 parent 57aaaa8 commit bffb137
Copy full SHA for bffb137

File tree

Expand file treeCollapse file tree

1 file changed

+7
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-6
lines changed

‎Doc/library/ast.rst

Copy file name to clipboardExpand all lines: Doc/library/ast.rst
+7-6Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ Node classes
8080
end_col_offset
8181

8282
Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have
83-
:attr:`lineno`, :attr:`col_offset`, :attr:`lineno`, and :attr:`col_offset`
84-
attributes. The :attr:`lineno` and :attr:`end_lineno` are the first and
85-
last line numbers of source text span (1-indexed so the first line is line 1)
86-
and the :attr:`col_offset` and :attr:`end_col_offset` are the corresponding
87-
UTF-8 byte offsets of the first and last tokens that generated the node.
88-
The UTF-8 offset is recorded because the parser uses UTF-8 internally.
83+
:attr:`lineno`, :attr:`col_offset`, :attr:`end_lineno`, and
84+
:attr:`end_col_offset` attributes. The :attr:`lineno` and :attr:`end_lineno`
85+
are the first and last line numbers of source text span (1-indexed so the
86+
first line is line 1) and the :attr:`col_offset` and :attr:`end_col_offset`
87+
are the corresponding UTF-8 byte offsets of the first and last tokens that
88+
generated the node. The UTF-8 offset is recorded because the parser uses
89+
UTF-8 internally.
8990

9091
Note that the end positions are not required by the compiler and are
9192
therefore optional. The end offset is *after* the last symbol, for example

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.