| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| Expand Up | @@ -91,11 +91,12 @@ Node classes | |||||
| end_lineno | ||||||
| end_col_offset | ||||||
|
|
||||||
| Instances of :class:`ast.expr` and :class:`ast.stmt` subclasses have | ||||||
| :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` | ||||||
| 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 | ||||||
|
Comment thread
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
Sorry, something went wrong.
All reactions
|
||||||
| :class:`ast.expr`, :class:`ast.stmt` and others (see | ||||||
| `Abstract Grammar <abstract-grammar_>`__). 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. | ||||||
| Expand Down | ||||||
| Back | FazBrowse Home | New Git URL |
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualitySorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.