- ASTCodeGenerator
- visit
- visit_Module
- visit_Expression
- visit_arguments
- visit_FunctionDef
- visit_ClassDef
- visit_Return
- visit_Delete
- visit_Assign
- visit_AugAssign
- visit_Print
- visit_For
- visit_While
- visit_If
- visit_With
- visit_Raise
- visit_TryExcept
- visit_ExceptHandler
- visit_TryFinally
- visit_Assert
- visit_alias
- visit_Import
- visit_ImportFrom
- visit_Exec
- visit_Global
- visit_Expr
- visit_Pass
- visit_Break
- visit_Continue
- with_parens
- visit_BoolOp
- visit_BinOp
- visit_UnaryOp
- visit_Lambda
- visit_IfExp
- visit_Dict
- visit_ListComp
- visit_GeneratorExp
- visit_Yield
- visit_Compare
- visit_Call
- visit_Repr
- visit_Num
- visit_Str
- visit_Attribute
- visit_Subscript
- visit_Name
- visit_List
- visit_Tuple
- ASTTransformer
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)