PyDocs

Nav

Python Language Services

AST

ast

class
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.
0 Examples
No examples for ast/AST.
See Also
No see-alsos for ast/AST
0 Notes
No notes for AST