Markdown Format | JSON API | MCP Server Tool
Help on module ast: NAME ast MODULE REFERENCE https://docs.python.org/3.10/library/ast.html The following documentation is automatically generated from the Python source files. It may be incomplete, incorrect or include features that are considered implementation detail and may vary between Python implementations. When in doubt, consult the module reference at the location listed above. DESCRIPTION ast ~~~ The `ast` module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what the current grammar looks like and allows modifications of it. An abstract syntax tree can be generated by passing `ast.PyCF_ONLY_AST` as a flag to the `compile()` builtin function or by using the `parse()` function from this module. The result will be a tree of objects whose classes all inherit from `ast.AST`. A modified abstract syntax tree can be compiled into a Python code object using the built-in `compile()` function. Additionally various helper functions are provided that make working with the trees simpler. The main intention of the helper functions and this module in general is to provide an easy to use interface for libraries that work tightly with the python syntax (template engines for example). :copyright: Copyright 2008 by Armin Ronacher. :license: Python License. CLASSES builtins.object AST alias arg arguments boolop And Or cmpop Eq Gt GtE In Is IsNot Lt LtE NotEq NotIn comprehension excepthandler ExceptHandler expr Attribute Await BinOp BoolOp Call Compare Constant Bytes Ellipsis NameConstant Num Str Dict DictComp FormattedValue GeneratorExp IfExp JoinedStr Lambda List ListComp Name NamedExpr Set SetComp Slice Starred Subscript Tuple UnaryOp Yield YieldFrom expr_context AugLoad AugStore Del Load Param Store keyword match_case mod Expression FunctionType Interactive Module Suite operator Add BitAnd BitOr BitXor Div FloorDiv LShift MatMult Mod Mult Pow RShift Sub pattern MatchAs MatchClass MatchMapping MatchOr MatchSequence MatchSingleton MatchStar MatchValue slice ExtSlice Index stmt AnnAssign Assert Assign AsyncFor AsyncFunctionDef AsyncWith AugAssign Break ClassDef Continue Delete Expr For FunctionDef Global If Import ImportFrom Match Nonlocal Pass Raise Return Try While With type_ignore TypeIgnore unaryop Invert Not UAdd USub withitem NodeVisitor NodeTransformer class AST(builtins.object) | Methods defined here: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods defined here: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = () | | _fields = () class Add(operator) | Add | | Method resolution order: | Add | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class And(boolop) | And | | Method resolution order: | And | boolop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from boolop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from boolop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class AnnAssign(stmt) | AnnAssign(expr target, expr annotation, expr? value, int simple) | | Method resolution order: | AnnAssign | stmt | AST | builtins.object | | Data and other attributes defined here: | | value = None | | __match_args__ = ('target', 'annotation', 'value', 'simple') | | _fields = ('target', 'annotation', 'value', 'simple') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Assert(stmt) | Assert(expr test, expr? msg) | | Method resolution order: | Assert | stmt | AST | builtins.object | | Data and other attributes defined here: | | msg = None | | __match_args__ = ('test', 'msg') | | _fields = ('test', 'msg') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Assign(stmt) | Assign(expr* targets, expr value, string? type_comment) | | Method resolution order: | Assign | stmt | AST | builtins.object | | Data and other attributes defined here: | | type_comment = None | | __match_args__ = ('targets', 'value', 'type_comment') | | _fields = ('targets', 'value', 'type_comment') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class AsyncFor(stmt) | AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) | | Method resolution order: | AsyncFor | stmt | AST | builtins.object | | Data and other attributes defined here: | | type_comment = None | | __match_args__ = ('target', 'iter', 'body', 'orelse', 'type_comment') | | _fields = ('target', 'iter', 'body', 'orelse', 'type_comment') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class AsyncFunctionDef(stmt) | AsyncFunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment) | | Method resolution order: | AsyncFunctionDef | stmt | AST | builtins.object | | Data and other attributes defined here: | | returns = None | | type_comment = None | | __match_args__ = ('name', 'args', 'body', 'decorator_list', 'returns',... | | _fields = ('name', 'args', 'body', 'decorator_list', 'returns', 'type_... | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class AsyncWith(stmt) | AsyncWith(withitem* items, stmt* body, string? type_comment) | | Method resolution order: | AsyncWith | stmt | AST | builtins.object | | Data and other attributes defined here: | | type_comment = None | | __match_args__ = ('items', 'body', 'type_comment') | | _fields = ('items', 'body', 'type_comment') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Attribute(expr) | Attribute(expr value, identifier attr, expr_context ctx) | | Method resolution order: | Attribute | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('value', 'attr', 'ctx') | | _fields = ('value', 'attr', 'ctx') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class AugAssign(stmt) | AugAssign(expr target, operator op, expr value) | | Method resolution order: | AugAssign | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('target', 'op', 'value') | | _fields = ('target', 'op', 'value') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class AugLoad(expr_context) | Deprecated AST node class. Unused in Python 3. | | Method resolution order: | AugLoad | expr_context | AST | builtins.object | | Data descriptors inherited from expr_context: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr_context: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class AugStore(expr_context) | Deprecated AST node class. Unused in Python 3. | | Method resolution order: | AugStore | expr_context | AST | builtins.object | | Data descriptors inherited from expr_context: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr_context: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Await(expr) | Await(expr value) | | Method resolution order: | Await | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('value',) | | _fields = ('value',) | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class BinOp(expr) | BinOp(expr left, operator op, expr right) | | Method resolution order: | BinOp | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('left', 'op', 'right') | | _fields = ('left', 'op', 'right') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class BitAnd(operator) | BitAnd | | Method resolution order: | BitAnd | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class BitOr(operator) | BitOr | | Method resolution order: | BitOr | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class BitXor(operator) | BitXor | | Method resolution order: | BitXor | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class BoolOp(expr) | BoolOp(boolop op, expr* values) | | Method resolution order: | BoolOp | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('op', 'values') | | _fields = ('op', 'values') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Break(stmt) | Break | | Method resolution order: | Break | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Bytes(Constant) | Bytes(*args, **kwargs) | | Deprecated AST node class. Use ast.Constant instead | | Method resolution order: | Bytes | Constant | expr | AST | builtins.object | | Static methods defined here: | | __new__ = _new(cls, *args, **kwargs) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | _fields = ('s',) | | ---------------------------------------------------------------------- | Data descriptors inherited from Constant: | | s | Deprecated. Use value instead. | | n | Deprecated. Use value instead. | | ---------------------------------------------------------------------- | Data and other attributes inherited from Constant: | | __match_args__ = ('value', 'kind') | | kind = None | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Call(expr) | Call(expr func, expr* args, keyword* keywords) | | Method resolution order: | Call | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('func', 'args', 'keywords') | | _fields = ('func', 'args', 'keywords') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class ClassDef(stmt) | ClassDef(identifier name, expr* bases, keyword* keywords, stmt* body, expr* decorator_list) | | Method resolution order: | ClassDef | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('name', 'bases', 'keywords', 'body', 'decorator_list... | | _fields = ('name', 'bases', 'keywords', 'body', 'decorator_list') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Compare(expr) | Compare(expr left, cmpop* ops, expr* comparators) | | Method resolution order: | Compare | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('left', 'ops', 'comparators') | | _fields = ('left', 'ops', 'comparators') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Constant(expr) | Constant(constant value, string? kind) | | Method resolution order: | Constant | expr | AST | builtins.object | | Data descriptors defined here: | | n | Deprecated. Use value instead. | | s | Deprecated. Use value instead. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | kind = None | | __match_args__ = ('value', 'kind') | | _fields = ('value', 'kind') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Continue(stmt) | Continue | | Method resolution order: | Continue | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Del(expr_context) | Del | | Method resolution order: | Del | expr_context | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from expr_context: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr_context: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Delete(stmt) | Delete(expr* targets) | | Method resolution order: | Delete | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('targets',) | | _fields = ('targets',) | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Dict(expr) | Dict(expr* keys, expr* values) | | Method resolution order: | Dict | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('keys', 'values') | | _fields = ('keys', 'values') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class DictComp(expr) | DictComp(expr key, expr value, comprehension* generators) | | Method resolution order: | DictComp | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('key', 'value', 'generators') | | _fields = ('key', 'value', 'generators') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Div(operator) | Div | | Method resolution order: | Div | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Ellipsis(Constant) | Ellipsis(*args, **kwargs) | | Deprecated AST node class. Use ast.Constant instead | | Method resolution order: | Ellipsis | Constant | expr | AST | builtins.object | | Static methods defined here: | | __new__(cls, *args, **kwargs) | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from Constant: | | n | Deprecated. Use value instead. | | s | Deprecated. Use value instead. | | ---------------------------------------------------------------------- | Data and other attributes inherited from Constant: | | __match_args__ = ('value', 'kind') | | kind = None | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Eq(cmpop) | Eq | | Method resolution order: | Eq | cmpop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from cmpop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from cmpop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class ExceptHandler(excepthandler) | ExceptHandler(expr? type, identifier? name, stmt* body) | | Method resolution order: | ExceptHandler | excepthandler | AST | builtins.object | | Data and other attributes defined here: | | type = None | | name = None | | __match_args__ = ('type', 'name', 'body') | | _fields = ('type', 'name', 'body') | | ---------------------------------------------------------------------- | Data descriptors inherited from excepthandler: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from excepthandler: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Expr(stmt) | Expr(expr value) | | Method resolution order: | Expr | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('value',) | | _fields = ('value',) | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Expression(mod) | Expression(expr body) | | Method resolution order: | Expression | mod | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('body',) | | _fields = ('body',) | | ---------------------------------------------------------------------- | Data descriptors inherited from mod: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from mod: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class ExtSlice(slice) | ExtSlice(dims=(), **kwargs) | | Deprecated AST node class. Use ast.Tuple instead. | | Method resolution order: | ExtSlice | slice | AST | builtins.object | | Static methods defined here: | | __new__(cls, dims=(), **kwargs) | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from slice: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ | | ---------------------------------------------------------------------- | Data and other attributes inherited from AST: | | __match_args__ = () | | _attributes = () | | _fields = () class FloorDiv(operator) | FloorDiv | | Method resolution order: | FloorDiv | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class For(stmt) | For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) | | Method resolution order: | For | stmt | AST | builtins.object | | Data and other attributes defined here: | | type_comment = None | | __match_args__ = ('target', 'iter', 'body', 'orelse', 'type_comment') | | _fields = ('target', 'iter', 'body', 'orelse', 'type_comment') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class FormattedValue(expr) | FormattedValue(expr value, int conversion, expr? format_spec) | | Method resolution order: | FormattedValue | expr | AST | builtins.object | | Data and other attributes defined here: | | format_spec = None | | __match_args__ = ('value', 'conversion', 'format_spec') | | _fields = ('value', 'conversion', 'format_spec') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class FunctionDef(stmt) | FunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment) | | Method resolution order: | FunctionDef | stmt | AST | builtins.object | | Data and other attributes defined here: | | returns = None | | type_comment = None | | __match_args__ = ('name', 'args', 'body', 'decorator_list', 'returns',... | | _fields = ('name', 'args', 'body', 'decorator_list', 'returns', 'type_... | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class FunctionType(mod) | FunctionType(expr* argtypes, expr returns) | | Method resolution order: | FunctionType | mod | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('argtypes', 'returns') | | _fields = ('argtypes', 'returns') | | ---------------------------------------------------------------------- | Data descriptors inherited from mod: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from mod: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class GeneratorExp(expr) | GeneratorExp(expr elt, comprehension* generators) | | Method resolution order: | GeneratorExp | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('elt', 'generators') | | _fields = ('elt', 'generators') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Global(stmt) | Global(identifier* names) | | Method resolution order: | Global | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('names',) | | _fields = ('names',) | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Gt(cmpop) | Gt | | Method resolution order: | Gt | cmpop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from cmpop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from cmpop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class GtE(cmpop) | GtE | | Method resolution order: | GtE | cmpop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from cmpop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from cmpop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class If(stmt) | If(expr test, stmt* body, stmt* orelse) | | Method resolution order: | If | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('test', 'body', 'orelse') | | _fields = ('test', 'body', 'orelse') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class IfExp(expr) | IfExp(expr test, expr body, expr orelse) | | Method resolution order: | IfExp | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('test', 'body', 'orelse') | | _fields = ('test', 'body', 'orelse') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Import(stmt) | Import(alias* names) | | Method resolution order: | Import | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('names',) | | _fields = ('names',) | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class ImportFrom(stmt) | ImportFrom(identifier? module, alias* names, int? level) | | Method resolution order: | ImportFrom | stmt | AST | builtins.object | | Data and other attributes defined here: | | module = None | | level = None | | __match_args__ = ('module', 'names', 'level') | | _fields = ('module', 'names', 'level') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class In(cmpop) | In | | Method resolution order: | In | cmpop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from cmpop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from cmpop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Index(slice) | Index(value, **kwargs) | | Deprecated AST node class. Use the index value directly instead. | | Method resolution order: | Index | slice | AST | builtins.object | | Static methods defined here: | | __new__(cls, value, **kwargs) | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from slice: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ | | ---------------------------------------------------------------------- | Data and other attributes inherited from AST: | | __match_args__ = () | | _attributes = () | | _fields = () class Interactive(mod) | Interactive(stmt* body) | | Method resolution order: | Interactive | mod | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('body',) | | _fields = ('body',) | | ---------------------------------------------------------------------- | Data descriptors inherited from mod: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from mod: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Invert(unaryop) | Invert | | Method resolution order: | Invert | unaryop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from unaryop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from unaryop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Is(cmpop) | Is | | Method resolution order: | Is | cmpop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from cmpop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from cmpop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class IsNot(cmpop) | IsNot | | Method resolution order: | IsNot | cmpop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from cmpop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from cmpop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class JoinedStr(expr) | JoinedStr(expr* values) | | Method resolution order: | JoinedStr | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('values',) | | _fields = ('values',) | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class LShift(operator) | LShift | | Method resolution order: | LShift | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Lambda(expr) | Lambda(arguments args, expr body) | | Method resolution order: | Lambda | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('args', 'body') | | _fields = ('args', 'body') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class List(expr) | List(expr* elts, expr_context ctx) | | Method resolution order: | List | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('elts', 'ctx') | | _fields = ('elts', 'ctx') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class ListComp(expr) | ListComp(expr elt, comprehension* generators) | | Method resolution order: | ListComp | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('elt', 'generators') | | _fields = ('elt', 'generators') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Load(expr_context) | Load | | Method resolution order: | Load | expr_context | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from expr_context: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr_context: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Lt(cmpop) | Lt | | Method resolution order: | Lt | cmpop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from cmpop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from cmpop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class LtE(cmpop) | LtE | | Method resolution order: | LtE | cmpop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from cmpop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from cmpop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class MatMult(operator) | MatMult | | Method resolution order: | MatMult | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Match(stmt) | Match(expr subject, match_case* cases) | | Method resolution order: | Match | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('subject', 'cases') | | _fields = ('subject', 'cases') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class MatchAs(pattern) | MatchAs(pattern? pattern, identifier? name) | | Method resolution order: | MatchAs | pattern | AST | builtins.object | | Data and other attributes defined here: | | pattern = None | | name = None | | __match_args__ = ('pattern', 'name') | | _fields = ('pattern', 'name') | | ---------------------------------------------------------------------- | Data descriptors inherited from pattern: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from pattern: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class MatchClass(pattern) | MatchClass(expr cls, pattern* patterns, identifier* kwd_attrs, pattern* kwd_patterns) | | Method resolution order: | MatchClass | pattern | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('cls', 'patterns', 'kwd_attrs', 'kwd_patterns') | | _fields = ('cls', 'patterns', 'kwd_attrs', 'kwd_patterns') | | ---------------------------------------------------------------------- | Data descriptors inherited from pattern: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from pattern: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class MatchMapping(pattern) | MatchMapping(expr* keys, pattern* patterns, identifier? rest) | | Method resolution order: | MatchMapping | pattern | AST | builtins.object | | Data and other attributes defined here: | | rest = None | | __match_args__ = ('keys', 'patterns', 'rest') | | _fields = ('keys', 'patterns', 'rest') | | ---------------------------------------------------------------------- | Data descriptors inherited from pattern: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from pattern: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class MatchOr(pattern) | MatchOr(pattern* patterns) | | Method resolution order: | MatchOr | pattern | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('patterns',) | | _fields = ('patterns',) | | ---------------------------------------------------------------------- | Data descriptors inherited from pattern: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from pattern: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class MatchSequence(pattern) | MatchSequence(pattern* patterns) | | Method resolution order: | MatchSequence | pattern | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('patterns',) | | _fields = ('patterns',) | | ---------------------------------------------------------------------- | Data descriptors inherited from pattern: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from pattern: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class MatchSingleton(pattern) | MatchSingleton(constant value) | | Method resolution order: | MatchSingleton | pattern | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('value',) | | _fields = ('value',) | | ---------------------------------------------------------------------- | Data descriptors inherited from pattern: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from pattern: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class MatchStar(pattern) | MatchStar(identifier? name) | | Method resolution order: | MatchStar | pattern | AST | builtins.object | | Data and other attributes defined here: | | name = None | | __match_args__ = ('name',) | | _fields = ('name',) | | ---------------------------------------------------------------------- | Data descriptors inherited from pattern: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from pattern: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class MatchValue(pattern) | MatchValue(expr value) | | Method resolution order: | MatchValue | pattern | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('value',) | | _fields = ('value',) | | ---------------------------------------------------------------------- | Data descriptors inherited from pattern: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from pattern: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Mod(operator) | Mod | | Method resolution order: | Mod | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Module(mod) | Module(stmt* body, type_ignore* type_ignores) | | Method resolution order: | Module | mod | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('body', 'type_ignores') | | _fields = ('body', 'type_ignores') | | ---------------------------------------------------------------------- | Data descriptors inherited from mod: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from mod: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Mult(operator) | Mult | | Method resolution order: | Mult | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Name(expr) | Name(identifier id, expr_context ctx) | | Method resolution order: | Name | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('id', 'ctx') | | _fields = ('id', 'ctx') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class NameConstant(Constant) | NameConstant(*args, **kwargs) | | Deprecated AST node class. Use ast.Constant instead | | Method resolution order: | NameConstant | Constant | expr | AST | builtins.object | | Static methods defined here: | | __new__ = _new(cls, *args, **kwargs) | | ---------------------------------------------------------------------- | Data descriptors inherited from Constant: | | n | Deprecated. Use value instead. | | s | Deprecated. Use value instead. | | ---------------------------------------------------------------------- | Data and other attributes inherited from Constant: | | kind = None | | __match_args__ = ('value', 'kind') | | _fields = ('value', 'kind') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class NamedExpr(expr) | NamedExpr(expr target, expr value) | | Method resolution order: | NamedExpr | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('target', 'value') | | _fields = ('target', 'value') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class NodeTransformer(NodeVisitor) | A :class:`NodeVisitor` subclass that walks the abstract syntax tree and | allows modification of nodes. | | The `NodeTransformer` will walk the AST and use the return value of the | visitor methods to replace or remove the old node. If the return value of | the visitor method is ``None``, the node will be removed from its location, | otherwise it is replaced with the return value. The return value may be the | original node in which case no replacement takes place. | | Here is an example transformer that rewrites all occurrences of name lookups | (``foo``) to ``data['foo']``:: | | class RewriteName(NodeTransformer): | | def visit_Name(self, node): | return Subscript( | value=Name(id='data', ctx=Load()), | slice=Constant(value=node.id), | ctx=node.ctx | ) | | Keep in mind that if the node you're operating on has child nodes you must | either transform the child nodes yourself or call the :meth:`generic_visit` | method for the node first. | | For nodes that were part of a collection of statements (that applies to all | statement nodes), the visitor may also return a list of nodes rather than | just a single node. | | Usually you use the transformer like this:: | | node = YourTransformer().visit(node) | | Method resolution order: | NodeTransformer | NodeVisitor | builtins.object | | Methods defined here: | | generic_visit(self, node) | Called if no explicit visitor function exists for a node. | | ---------------------------------------------------------------------- | Methods inherited from NodeVisitor: | | visit(self, node) | Visit a node. | | visit_Constant(self, node) | | ---------------------------------------------------------------------- | Data descriptors inherited from NodeVisitor: | | __dict__ | dictionary for instance variables (if defined) | | __weakref__ | list of weak references to the object (if defined) class NodeVisitor(builtins.object) | A node visitor base class that walks the abstract syntax tree and calls a | visitor function for every node found. This function may return a value | which is forwarded by the `visit` method. | | This class is meant to be subclassed, with the subclass adding visitor | methods. | | Per default the visitor functions for the nodes are ``'visit_'`` + | class name of the node. So a `TryFinally` node visit function would | be `visit_TryFinally`. This behavior can be changed by overriding | the `visit` method. If no visitor function exists for a node | (return value `None`) the `generic_visit` visitor is used instead. | | Don't use the `NodeVisitor` if you want to apply changes to nodes during | traversing. For this a special visitor exists (`NodeTransformer`) that | allows modifications. | | Methods defined here: | | generic_visit(self, node) | Called if no explicit visitor function exists for a node. | | visit(self, node) | Visit a node. | | visit_Constant(self, node) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables (if defined) | | __weakref__ | list of weak references to the object (if defined) class Nonlocal(stmt) | Nonlocal(identifier* names) | | Method resolution order: | Nonlocal | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('names',) | | _fields = ('names',) | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Not(unaryop) | Not | | Method resolution order: | Not | unaryop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from unaryop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from unaryop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class NotEq(cmpop) | NotEq | | Method resolution order: | NotEq | cmpop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from cmpop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from cmpop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class NotIn(cmpop) | NotIn | | Method resolution order: | NotIn | cmpop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from cmpop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from cmpop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Num(Constant) | Num(*args, **kwargs) | | Deprecated AST node class. Use ast.Constant instead | | Method resolution order: | Num | Constant | expr | AST | builtins.object | | Static methods defined here: | | __new__ = _new(cls, *args, **kwargs) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | _fields = ('n',) | | ---------------------------------------------------------------------- | Data descriptors inherited from Constant: | | n | Deprecated. Use value instead. | | s | Deprecated. Use value instead. | | ---------------------------------------------------------------------- | Data and other attributes inherited from Constant: | | __match_args__ = ('value', 'kind') | | kind = None | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Or(boolop) | Or | | Method resolution order: | Or | boolop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from boolop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from boolop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Param(expr_context) | Deprecated AST node class. Unused in Python 3. | | Method resolution order: | Param | expr_context | AST | builtins.object | | Data descriptors inherited from expr_context: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr_context: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Pass(stmt) | Pass | | Method resolution order: | Pass | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Pow(operator) | Pow | | Method resolution order: | Pow | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class RShift(operator) | RShift | | Method resolution order: | RShift | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Raise(stmt) | Raise(expr? exc, expr? cause) | | Method resolution order: | Raise | stmt | AST | builtins.object | | Data and other attributes defined here: | | exc = None | | cause = None | | __match_args__ = ('exc', 'cause') | | _fields = ('exc', 'cause') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Return(stmt) | Return(expr? value) | | Method resolution order: | Return | stmt | AST | builtins.object | | Data and other attributes defined here: | | value = None | | __match_args__ = ('value',) | | _fields = ('value',) | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Set(expr) | Set(expr* elts) | | Method resolution order: | Set | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('elts',) | | _fields = ('elts',) | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class SetComp(expr) | SetComp(expr elt, comprehension* generators) | | Method resolution order: | SetComp | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('elt', 'generators') | | _fields = ('elt', 'generators') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Slice(expr) | Slice(expr? lower, expr? upper, expr? step) | | Method resolution order: | Slice | expr | AST | builtins.object | | Data and other attributes defined here: | | lower = None | | upper = None | | step = None | | __match_args__ = ('lower', 'upper', 'step') | | _fields = ('lower', 'upper', 'step') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Starred(expr) | Starred(expr value, expr_context ctx) | | Method resolution order: | Starred | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('value', 'ctx') | | _fields = ('value', 'ctx') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Store(expr_context) | Store | | Method resolution order: | Store | expr_context | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from expr_context: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr_context: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Str(Constant) | Str(*args, **kwargs) | | Deprecated AST node class. Use ast.Constant instead | | Method resolution order: | Str | Constant | expr | AST | builtins.object | | Static methods defined here: | | __new__ = _new(cls, *args, **kwargs) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | _fields = ('s',) | | ---------------------------------------------------------------------- | Data descriptors inherited from Constant: | | s | Deprecated. Use value instead. | | n | Deprecated. Use value instead. | | ---------------------------------------------------------------------- | Data and other attributes inherited from Constant: | | __match_args__ = ('value', 'kind') | | kind = None | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Sub(operator) | Sub | | Method resolution order: | Sub | operator | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from operator: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from operator: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Subscript(expr) | Subscript(expr value, expr slice, expr_context ctx) | | Method resolution order: | Subscript | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('value', 'slice', 'ctx') | | _fields = ('value', 'slice', 'ctx') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Suite(mod) | Deprecated AST node class. Unused in Python 3. | | Method resolution order: | Suite | mod | AST | builtins.object | | Data descriptors inherited from mod: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from mod: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Try(stmt) | Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody) | | Method resolution order: | Try | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('body', 'handlers', 'orelse', 'finalbody') | | _fields = ('body', 'handlers', 'orelse', 'finalbody') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Tuple(expr) | Tuple(expr* elts, expr_context ctx) | | Method resolution order: | Tuple | expr | AST | builtins.object | | Data descriptors defined here: | | dims | Deprecated. Use elts instead. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = ('elts', 'ctx') | | _fields = ('elts', 'ctx') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class TypeIgnore(type_ignore) | TypeIgnore(int lineno, string tag) | | Method resolution order: | TypeIgnore | type_ignore | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('lineno', 'tag') | | _fields = ('lineno', 'tag') | | ---------------------------------------------------------------------- | Data descriptors inherited from type_ignore: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from type_ignore: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class UAdd(unaryop) | UAdd | | Method resolution order: | UAdd | unaryop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from unaryop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from unaryop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class USub(unaryop) | USub | | Method resolution order: | USub | unaryop | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = () | | _fields = () | | ---------------------------------------------------------------------- | Data descriptors inherited from unaryop: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from unaryop: | | _attributes = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class UnaryOp(expr) | UnaryOp(unaryop op, expr operand) | | Method resolution order: | UnaryOp | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('op', 'operand') | | _fields = ('op', 'operand') | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class While(stmt) | While(expr test, stmt* body, stmt* orelse) | | Method resolution order: | While | stmt | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('test', 'body', 'orelse') | | _fields = ('test', 'body', 'orelse') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class With(stmt) | With(withitem* items, stmt* body, string? type_comment) | | Method resolution order: | With | stmt | AST | builtins.object | | Data and other attributes defined here: | | type_comment = None | | __match_args__ = ('items', 'body', 'type_comment') | | _fields = ('items', 'body', 'type_comment') | | ---------------------------------------------------------------------- | Data descriptors inherited from stmt: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from stmt: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class Yield(expr) | Yield(expr? value) | | Method resolution order: | Yield | expr | AST | builtins.object | | Data and other attributes defined here: | | value = None | | __match_args__ = ('value',) | | _fields = ('value',) | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class YieldFrom(expr) | YieldFrom(expr value) | | Method resolution order: | YieldFrom | expr | AST | builtins.object | | Data and other attributes defined here: | | __match_args__ = ('value',) | | _fields = ('value',) | | ---------------------------------------------------------------------- | Data descriptors inherited from expr: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes inherited from expr: | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class alias(AST) | alias(identifier name, identifier? asname) | | Method resolution order: | alias | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | asname = None | | __match_args__ = ('name', 'asname') | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | _fields = ('name', 'asname') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class arg(AST) | arg(identifier arg, expr? annotation, string? type_comment) | | Method resolution order: | arg | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | annotation = None | | type_comment = None | | __match_args__ = ('arg', 'annotation', 'type_comment') | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | _fields = ('arg', 'annotation', 'type_comment') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class arguments(AST) | arguments(arg* posonlyargs, arg* args, arg? vararg, arg* kwonlyargs, expr* kw_defaults, arg? kwarg, expr* defaults) | | Method resolution order: | arguments | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | vararg = None | | kwarg = None | | __match_args__ = ('posonlyargs', 'args', 'vararg', 'kwonlyargs', 'kw_d... | | _attributes = () | | _fields = ('posonlyargs', 'args', 'vararg', 'kwonlyargs', 'kw_defaults... | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class boolop(AST) | boolop = And | Or | | Method resolution order: | boolop | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class cmpop(AST) | cmpop = Eq | NotEq | Lt | LtE | Gt | GtE | Is | IsNot | In | NotIn | | Method resolution order: | cmpop | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class comprehension(AST) | comprehension(expr target, expr iter, expr* ifs, int is_async) | | Method resolution order: | comprehension | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = ('target', 'iter', 'ifs', 'is_async') | | _attributes = () | | _fields = ('target', 'iter', 'ifs', 'is_async') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class excepthandler(AST) | excepthandler = ExceptHandler(expr? type, identifier? name, stmt* body) | | Method resolution order: | excepthandler | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | _fields = () | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class expr(AST) | expr = BoolOp(boolop op, expr* values) | | NamedExpr(expr target, expr value) | | BinOp(expr left, operator op, expr right) | | UnaryOp(unaryop op, expr operand) | | Lambda(arguments args, expr body) | | IfExp(expr test, expr body, expr orelse) | | Dict(expr* keys, expr* values) | | Set(expr* elts) | | ListComp(expr elt, comprehension* generators) | | SetComp(expr elt, comprehension* generators) | | DictComp(expr key, expr value, comprehension* generators) | | GeneratorExp(expr elt, comprehension* generators) | | Await(expr value) | | Yield(expr? value) | | YieldFrom(expr value) | | Compare(expr left, cmpop* ops, expr* comparators) | | Call(expr func, expr* args, keyword* keywords) | | FormattedValue(expr value, int conversion, expr? format_spec) | | JoinedStr(expr* values) | | Constant(constant value, string? kind) | | Attribute(expr value, identifier attr, expr_context ctx) | | Subscript(expr value, expr slice, expr_context ctx) | | Starred(expr value, expr_context ctx) | | Name(identifier id, expr_context ctx) | | List(expr* elts, expr_context ctx) | | Tuple(expr* elts, expr_context ctx) | | Slice(expr? lower, expr? upper, expr? step) | | Method resolution order: | expr | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | _fields = () | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class expr_context(AST) | expr_context = Load | Store | Del | | Method resolution order: | expr_context | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class keyword(AST) | keyword(identifier? arg, expr value) | | Method resolution order: | keyword | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | arg = None | | __match_args__ = ('arg', 'value') | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | _fields = ('arg', 'value') | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class match_case(AST) | match_case(pattern pattern, expr? guard, stmt* body) | | Method resolution order: | match_case | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | guard = None | | __match_args__ = ('pattern', 'guard', 'body') | | _attributes = () | | _fields = ('pattern', 'guard', 'body') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class mod(AST) | mod = Module(stmt* body, type_ignore* type_ignores) | | Interactive(stmt* body) | | Expression(expr body) | | FunctionType(expr* argtypes, expr returns) | | Method resolution order: | mod | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class operator(AST) | operator = Add | Sub | Mult | MatMult | Div | Mod | Pow | LShift | RShift | BitOr | BitXor | BitAnd | FloorDiv | | Method resolution order: | operator | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class pattern(AST) | pattern = MatchValue(expr value) | | MatchSingleton(constant value) | | MatchSequence(pattern* patterns) | | MatchMapping(expr* keys, pattern* patterns, identifier? rest) | | MatchClass(expr cls, pattern* patterns, identifier* kwd_attrs, pattern* kwd_patterns) | | MatchStar(identifier? name) | | MatchAs(pattern? pattern, identifier? name) | | MatchOr(pattern* patterns) | | Method resolution order: | pattern | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class slice(AST) | Deprecated AST node class. | | Method resolution order: | slice | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ | | ---------------------------------------------------------------------- | Data and other attributes inherited from AST: | | __match_args__ = () | | _attributes = () | | _fields = () class stmt(AST) | stmt = FunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment) | | AsyncFunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment) | | ClassDef(identifier name, expr* bases, keyword* keywords, stmt* body, expr* decorator_list) | | Return(expr? value) | | Delete(expr* targets) | | Assign(expr* targets, expr value, string? type_comment) | | AugAssign(expr target, operator op, expr value) | | AnnAssign(expr target, expr annotation, expr? value, int simple) | | For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) | | AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) | | While(expr test, stmt* body, stmt* orelse) | | If(expr test, stmt* body, stmt* orelse) | | With(withitem* items, stmt* body, string? type_comment) | | AsyncWith(withitem* items, stmt* body, string? type_comment) | | Match(expr subject, match_case* cases) | | Raise(expr? exc, expr? cause) | | Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody) | | Assert(expr test, expr? msg) | | Import(alias* names) | | ImportFrom(identifier? module, alias* names, int? level) | | Global(identifier* names) | | Nonlocal(identifier* names) | | Expr(expr value) | | Pass | | Break | | Continue | | Method resolution order: | stmt | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = ('lineno', 'col_offset', 'end_lineno', 'end_col_offset') | | _fields = () | | end_col_offset = None | | end_lineno = None | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class type_ignore(AST) | type_ignore = TypeIgnore(int lineno, string tag) | | Method resolution order: | type_ignore | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class unaryop(AST) | unaryop = Invert | Not | UAdd | USub | | Method resolution order: | unaryop | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __match_args__ = () | | _attributes = () | | _fields = () | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ class withitem(AST) | withitem(expr context_expr, expr? optional_vars) | | Method resolution order: | withitem | AST | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object (if defined) | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | optional_vars = None | | __match_args__ = ('context_expr', 'optional_vars') | | _attributes = () | | _fields = ('context_expr', 'optional_vars') | | ---------------------------------------------------------------------- | Methods inherited from AST: | | __delattr__(self, name, /) | Implement delattr(self, name). | | __getattribute__(self, name, /) | Return getattr(self, name). | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | __reduce__(...) | Helper for pickle. | | __setattr__(self, name, value, /) | Implement setattr(self, name, value). | | ---------------------------------------------------------------------- | Static methods inherited from AST: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Data descriptors inherited from AST: | | __dict__ FUNCTIONS copy_location(new_node, old_node) Copy source location (`lineno`, `col_offset`, `end_lineno`, and `end_col_offset` attributes) from *old_node* to *new_node* if possible, and return *new_node*. dump(node, annotate_fields=True, include_attributes=False, *, indent=None) Return a formatted dump of the tree in node. This is mainly useful for debugging purposes. If annotate_fields is true (by default), the returned string will show the names and the values for fields. If annotate_fields is false, the result string will be more compact by omitting unambiguous field names. Attributes such as line numbers and column offsets are not dumped by default. If this is wanted, include_attributes can be set to true. If indent is a non-negative integer or string, then the tree will be pretty-printed with that indent level. None (the default) selects the single line representation. fix_missing_locations(node) When you compile a node tree with compile(), the compiler expects lineno and col_offset attributes for every node that supports them. This is rather tedious to fill in for generated nodes, so this helper adds these attributes recursively where not already set, by setting them to the values of the parent node. It works recursively starting at *node*. get_docstring(node, clean=True) Return the docstring for the given node or None if no docstring can be found. If the node provided does not have docstrings a TypeError will be raised. If *clean* is `True`, all tabs are expanded to spaces and any whitespace that can be uniformly removed from the second line onwards is removed. get_source_segment(source, node, *, padded=False) Get source code segment of the *source* that generated *node*. If some location information (`lineno`, `end_lineno`, `col_offset`, or `end_col_offset`) is missing, return None. If *padded* is `True`, the first line of a multi-line statement will be padded with spaces to match its original position. increment_lineno(node, n=1) Increment the line number and end line number of each node in the tree starting at *node* by *n*. This is useful to "move code" to a different location in a file. iter_child_nodes(node) Yield all direct child nodes of *node*, that is, all fields that are nodes and all items of fields that are lists of nodes. iter_fields(node) Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` that is present on *node*. literal_eval(node_or_string) Evaluate an expression node or a string containing only a Python expression. The string or node provided may only consist of the following Python literal structures: strings, bytes, numbers, tuples, lists, dicts, sets, booleans, and None. Caution: A complex expression can overflow the C stack and cause a crash. main() parse(source, filename='<unknown>', mode='exec', *, type_comments=False, feature_version=None) Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. unparse(ast_obj) walk(node) Recursively yield all descendant nodes in the tree starting at *node* (including *node* itself), in no specified order. This is useful if you only want to modify nodes in place and don't care about the context. DATA PyCF_ALLOW_TOP_LEVEL_AWAIT = 8192 PyCF_ONLY_AST = 1024 PyCF_TYPE_COMMENTS = 4096 FILE /usr/lib/python3.10/ast.py
Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:14 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)