Utility object for transforming Python parse trees.
Exposes the following methods: tree = transform(ast_tree) tree = parsesuite(text) tree = parseexpr(text) tree = parsefile(fileob | filename)
There are no base classes.
There are no implemented interfaces.
There are no attributes in this class.
and_expr(nodelist)
and_test(nodelist)
argument(nodelist)
arith_expr(nodelist)
assert_stmt(nodelist)
atom(nodelist)
atom_backquote(nodelist)
atom_lbrace(nodelist)
atom_lpar(nodelist)
atom_lsqb(nodelist)
atom_name(nodelist)
atom_number(nodelist)
atom_string(nodelist)
break_stmt(nodelist)
classdef(nodelist)
com_NEWLINE(*args)
com_append_stmt(stmts, node)
com_apply_trailer(primaryNode, nodelist)
com_arglist(nodelist)
com_argument(nodelist, kw)
com_assign(node, assigning)
com_assign_attr(primary, node, assigning)
com_assign_list(node, assigning)
com_assign_name(node, assigning)
com_assign_trailer(primary, node, assigning)
com_assign_tuple(node, assigning)
com_augassign(node)
Return node suitable for lvalue of augmented assignment
Names, slices, and attributes are the only allowable nodes.
com_augassign_op(node)
com_bases(node)
com_binary(constructor, nodelist)
Compile NODE (OP NODE)*
into (type, [ node1, ..., nodeN ]).
com_call_function(primaryNode, nodelist)
com_dictmaker(nodelist)
com_dotted_as_name(node)
com_dotted_as_names(node)
com_dotted_name(node)
com_fpdef(node)
com_fplist(node)
com_gen_iter(node)
com_generator_expression(expr, node)
com_import_as_name(node)
com_import_as_names(node)
com_list_comprehension(expr, node)
com_list_constructor(nodelist)
com_list_iter(node)
com_node(node)
com_select_member(primaryNode, nodelist)
com_slice(primary, node, assigning)
com_sliceobj(node)
com_stmt(node)
com_subscript(node)
com_subscriptlist(primary, nodelist, assigning)
com_try_except(nodelist)
com_try_finally(nodelist)
comp_op(nodelist)
comparison(nodelist)
compile_node(node)
compound_stmt(nodelist)
continue_stmt(nodelist)
decode_literal(lit)
decorator(nodelist)
decorator_name(nodelist)
decorators(nodelist)
del_stmt(nodelist)
dotted_name(nodelist)
eval_input(nodelist)
exec_stmt(nodelist)
expr(nodelist)
expr_stmt(nodelist)
exprlist(nodelist)
factor(nodelist)
file_input(nodelist)
flow_stmt(nodelist)
for_stmt(nodelist)
fpdef(nodelist)
fplist(nodelist)
funcdef(nodelist)
get_docstring(node, n=None)
global_stmt(nodelist)
if_stmt(nodelist)
import_from(nodelist)
import_name(nodelist)
import_stmt(nodelist)
lambdef(nodelist)
lookup_node(node)
not_test(nodelist)
parameters(nodelist)
parseexpr(text)
Return a modified parse tree for the given expression text.
parsefile(file)
Return a modified parse tree for the contents of the given file.
parsesuite(text)
Return a modified parse tree for the given suite text.
pass_stmt(nodelist)
power(nodelist)
print_stmt(nodelist)
raise_stmt(nodelist)
return_stmt(nodelist)
shift_expr(nodelist)
simple_stmt(nodelist)
single_input(node)
sliceop(nodelist)
small_stmt(nodelist)
stmt(nodelist)
suite(nodelist)
term(nodelist)
test(nodelist)
testlist(nodelist)
testlist1(nodelist)
testlist_gexp(nodelist)
testlist_safe(nodelist)
trailer(nodelist)
transform(tree)
Transform an AST into a modified parse tree.
try_stmt(nodelist)
varargslist(nodelist)
while_stmt(nodelist)
xor_expr(nodelist)
yield_stmt(nodelist)
There are no known subclasses.