Staging: this is not the live site, pydocs.org.
This is the abstract base of all AST node classes. The actual node classes are derived from the Parser/Python.asdl file, which is reproduced above. They are defined in the _ast C module and re-exported in ast. Members of AST _ _field_types The _field_types attribute on each concrete class is a dictionary mapping field names (as also listed in _fields) to their types. _fields Each concrete class has an attribute _fields which gives the names of all child nodes. c col_offset Instances of ast.expr and ast.stmt subclasses have lineno, col_offset, end_lineno, and end_col_offset attributes. e end_col_offset Instances of ast.expr and ast.stmt subclasses have lineno, col_offset, end_lineno, and end_col_offset attributes. end_lineno Instances of ast.expr and ast.stmt subclasses have lineno, col_offset, end_lineno, and end_col_offset attributes. l lineno Instances of ast.expr and ast.stmt subclasses have lineno, col_offset, end_lineno, and end_col_offset attributes.
Python docs © Python Software Foundation · Examples CC0 ·
Source on GitHub · Not affiliated with the PSF