Edgewall Software

genshi.template.astutil

Support classes for generating code from abstract syntax trees.

ASTCodeGenerator

General purpose base class for AST transformations.

Every visitor method can be overridden to return an AST node that has been altered or replaced in some way.

visit(self, node)

(Not documented)

visit_Module(self, node)

(Not documented)

visit_Expression(self, node)

(Not documented)

visit_arguments(self, node)

(Not documented)

visit_FunctionDef(self, node)

(Not documented)

visit_ClassDef(self, node)

(Not documented)

visit_Return(self, node)

(Not documented)

visit_Delete(self, node)

(Not documented)

visit_Assign(self, node)

(Not documented)

visit_AugAssign(self, node)

(Not documented)

visit_Print(self, node)

(Not documented)

visit_For(self, node)

(Not documented)

visit_While(self, node)

(Not documented)

visit_If(self, node)

(Not documented)

visit_With(self, node)

(Not documented)

visit_Raise(self, node)

(Not documented)

visit_TryExcept(self, node)

(Not documented)

visit_ExceptHandler(self, node)

(Not documented)

visit_TryFinally(self, node)

(Not documented)

visit_Assert(self, node)

(Not documented)

visit_alias(self, node)

(Not documented)

visit_Import(self, node)

(Not documented)

visit_ImportFrom(self, node)

(Not documented)

visit_Exec(self, node)

(Not documented)

visit_Global(self, node)

(Not documented)

visit_Expr(self, node)

(Not documented)

visit_Pass(self, node)

(Not documented)

visit_Break(self, node)

(Not documented)

visit_Continue(self, node)

(Not documented)

with_parens(f)

(Not documented)

visit_BoolOp(self, node)

(Not documented)

visit_BinOp(self, node)

(Not documented)

visit_UnaryOp(self, node)

(Not documented)

visit_Lambda(self, node)

(Not documented)

visit_IfExp(self, node)

(Not documented)

visit_Dict(self, node)

(Not documented)

visit_ListComp(self, node)

(Not documented)

visit_GeneratorExp(self, node)

(Not documented)

visit_Yield(self, node)

(Not documented)

visit_Compare(self, node)

(Not documented)

visit_Call(self, node)

(Not documented)

visit_Repr(self, node)

(Not documented)

visit_Num(self, node)

(Not documented)

visit_Str(self, node)

(Not documented)

visit_Attribute(self, node)

(Not documented)

visit_Subscript(self, node)

(Not documented)

visit_Name(self, node)

(Not documented)

visit_List(self, node)

(Not documented)

visit_Tuple(self, node)

(Not documented)

ASTTransformer

General purpose base class for AST transformations.

Every visitor method can be overridden to return an AST node that has been altered or replaced in some way.

visit(self, node)

(Not documented)


See ApiDocs/0.6.x, Documentation

Last modified 9 years ago Last modified on Dec 4, 2015, 3:01:30 AM