-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-136640: Clarify the documentation of the AST module #136868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @mlnrt for working on this during the EuroPython sprints! I'll wait for an AST expert to review before merging. cc: @JelleZijlstra @Eclips4
A
: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` | ||
Most classes part of the AST module have the :attr:`lineno`, :attr:`col_offset`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most classes part of the AST module have the :attr:`lineno`, :attr:`col_offset`, | |
Most classes in the :mod:`!ast` module have the :attr:`lineno`, :attr:`col_offset`, |
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` | ||
Most classes part of the AST module have the :attr:`lineno`, :attr:`col_offset`, | ||
:attr:`end_lineno`, and :attr:`end_col_offset` attributes, including subclasses of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:attr:`end_lineno`, and :attr:`end_col_offset` attributes, including subclasses of | |
:attr:`end_lineno`, and :attr:`end_col_offset` attributes, including all subclasses of |
This PR clarifies the documentation describing the attributes of classes part of the AST module
ast.AST
location attributes #136640📚 Documentation preview 📚: https://cpython-previews--136868.org.readthedocs.build/