diff options
author | Matthew Suozzo <matthew.suozzo@gmail.com> | 2020-11-03 21:28:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 21:28:42 (GMT) |
commit | bffb137cb5c694e152895556ac3f327240d769f5 (patch) | |
tree | c36b5052a14a7c4c1e241ff108058bc04ca7064c /Doc/library | |
parent | 57aaaa8d2a43bddffeca4ead5632ce6652945cc0 (diff) | |
download | cpython-bffb137cb5c694e152895556ac3f327240d769f5.zip cpython-bffb137cb5c694e152895556ac3f327240d769f5.tar.gz cpython-bffb137cb5c694e152895556ac3f327240d769f5.tar.bz2 |
Fix incorrect links in ast docs (GH-23017)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/ast.rst | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index b8688ae..8a5c6ec 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -80,12 +80,13 @@ 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 - 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. + :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 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. Note that the end positions are not required by the compiler and are therefore optional. The end offset is *after* the last symbol, for example |