class documentation

class Module(ast.Module, ConcreteASTNode): (source)

View In Hierarchy

Undocumented

Inherited from ASTNode:

Method infer Undocumented
Method locate_child Find the field of this node that contains the given child. :param child: The child node to search fields for. :param recurse: Whether to recurse in all nested children to find the node. :type child: ASTNode :returns: A tuple of the name of the field that contains the child,...
Method lookup Lookup where the given variable is assigned.
Method node_ancestors Yield parent, grandparent, etc until there are no more.
Method parent_of Check if this node is the parent of the given node. :param node: The node to check if it is the child. :type node: ASTNode :returns: True if this node is the parent of the given node,
Method resolve Resolve a basename to get its fully qualified name in the context of self.
Method unparse Undocumented
Class Variable end_lineno Undocumented
Class Variable parent None for Modules.
Property children Build and return the children of this node.
Property first_child Return the first child of this node.
Property frame Returns the first parent ast.Lambda, ast.FunctionDef, ast.AsyncFunctionDef,`ast.ClassDef` or ast.Module.
Property kind Return the kind of this node.
Property last_child Return the lasts child of this node.
Property lineno Undocumented
Property locals Undocumented
Property next Return the next sibling of this node.
Property next_siblings Return the next siblings of this node, starting from the closest.
Property position Tell the position of this node amongst its siblings.
Property previous Return the previous sibling of this node.
Property previous_siblings Return the previous siblings of this node, starting from the closest.
Property qname Get the 'qualified' name of the node.
Property root Return the root node of the syntax tree.
Property scope The scope is which this expression can be resolved. This is generally equal to the frame, expect for nodes defined in decorators, in this case the scope is the upper scope.
Property siblings Return the siblings of this node.
Property statement The first parent node, including self, marked as statement node. When called on a Module this returns self.
Method _report Log an error or warning about this node object.
Class Variable _filename Undocumented
Class Variable _is_package Undocumented
Class Variable _locals Undocumented
Class Variable _modname Undocumented
Class Variable _parser Undocumented
Property _is_from_decorator Return True if the node is the child of a decorator