compiler.ast
index
/usr/local/lib/python2.3/compiler/ast.py

Python abstract syntax node definitions
 
This file is automatically generated.

 
Classes
       
Node
Add
And
AssAttr
AssList
AssName
AssTuple
Assert
Assign
AugAssign
Backquote
Bitand
Bitor
Bitxor
Break
CallFunc
Class
Compare
Const
Continue
Dict
Discard
Div
Ellipsis
EmptyNode
Exec
Expression
FloorDiv
For
From
Function
Getattr
Global
If
Import
Invert
Keyword
Lambda
LeftShift
List
ListComp
ListCompFor
ListCompIf
Mod
Module
Mul
Name
Not
Or
Pass
Power
Print
Printnl
Raise
Return
RightShift
Slice
Sliceobj
Stmt
Sub
Subscript
TryExcept
TryFinally
Tuple
UnaryAdd
UnarySub
While
Yield

 
class Add(Node)
     Methods defined here:
__init__(self, (left, right))
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class And(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class AssAttr(Node)
     Methods defined here:
__init__(self, expr, attrname, flags)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class AssList(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class AssName(Node)
     Methods defined here:
__init__(self, name, flags)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class AssTuple(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Assert(Node)
     Methods defined here:
__init__(self, test, fail)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Assign(Node)
     Methods defined here:
__init__(self, nodes, expr)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class AugAssign(Node)
     Methods defined here:
__init__(self, node, op, expr)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Backquote(Node)
     Methods defined here:
__init__(self, expr)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Bitand(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Bitor(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Bitxor(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Break(Node)
     Methods defined here:
__init__(self)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class CallFunc(Node)
     Methods defined here:
__init__(self, node, args, star_args=None, dstar_args=None)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Class(Node)
     Methods defined here:
__init__(self, name, bases, doc, code)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Compare(Node)
     Methods defined here:
__init__(self, expr, ops)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Const(Node)
     Methods defined here:
__init__(self, value)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Continue(Node)
     Methods defined here:
__init__(self)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Dict(Node)
     Methods defined here:
__init__(self, items)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Discard(Node)
     Methods defined here:
__init__(self, expr)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Div(Node)
     Methods defined here:
__init__(self, (left, right))
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Ellipsis(Node)
     Methods defined here:
__init__(self)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class EmptyNode(Node)
     Methods inherited from Node:
asList(self)
getChildNodes(self)
getChildren(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Exec(Node)
     Methods defined here:
__init__(self, expr, locals, globals)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Expression(Node)
     Methods defined here:
__init__(self, node)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class FloorDiv(Node)
     Methods defined here:
__init__(self, (left, right))
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class For(Node)
     Methods defined here:
__init__(self, assign, list, body, else_)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class From(Node)
     Methods defined here:
__init__(self, modname, names)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Function(Node)
     Methods defined here:
__init__(self, name, argnames, defaults, flags, doc, code)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Getattr(Node)
     Methods defined here:
__init__(self, expr, attrname)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Global(Node)
     Methods defined here:
__init__(self, names)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class If(Node)
     Methods defined here:
__init__(self, tests, else_)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Import(Node)
     Methods defined here:
__init__(self, names)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Invert(Node)
     Methods defined here:
__init__(self, expr)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Keyword(Node)
     Methods defined here:
__init__(self, name, expr)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Lambda(Node)
     Methods defined here:
__init__(self, argnames, defaults, flags, code)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class LeftShift(Node)
     Methods defined here:
__init__(self, (left, right))
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class List(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class ListComp(Node)
     Methods defined here:
__init__(self, expr, quals)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class ListCompFor(Node)
     Methods defined here:
__init__(self, assign, list, ifs)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class ListCompIf(Node)
     Methods defined here:
__init__(self, test)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Mod(Node)
     Methods defined here:
__init__(self, (left, right))
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Module(Node)
     Methods defined here:
__init__(self, doc, node)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Mul(Node)
     Methods defined here:
__init__(self, (left, right))
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Name(Node)
     Methods defined here:
__init__(self, name)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Node
     Methods defined here:
asList(self)
getChildNodes(self)
getChildren(self)
getType(self)

Data and other attributes defined here:
lineno = None

 
class Not(Node)
     Methods defined here:
__init__(self, expr)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Or(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Pass(Node)
     Methods defined here:
__init__(self)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Power(Node)
     Methods defined here:
__init__(self, (left, right))
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Print(Node)
     Methods defined here:
__init__(self, nodes, dest)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Printnl(Node)
     Methods defined here:
__init__(self, nodes, dest)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Raise(Node)
     Methods defined here:
__init__(self, expr1, expr2, expr3)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Return(Node)
     Methods defined here:
__init__(self, value)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class RightShift(Node)
     Methods defined here:
__init__(self, (left, right))
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Slice(Node)
     Methods defined here:
__init__(self, expr, flags, lower, upper)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Sliceobj(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Stmt(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Sub(Node)
     Methods defined here:
__init__(self, (left, right))
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Subscript(Node)
     Methods defined here:
__init__(self, expr, flags, subs)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class TryExcept(Node)
     Methods defined here:
__init__(self, body, handlers, else_)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class TryFinally(Node)
     Methods defined here:
__init__(self, body, final)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Tuple(Node)
     Methods defined here:
__init__(self, nodes)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class UnaryAdd(Node)
     Methods defined here:
__init__(self, expr)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class UnarySub(Node)
     Methods defined here:
__init__(self, expr)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class While(Node)
     Methods defined here:
__init__(self, test, body, else_)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
class Yield(Node)
     Methods defined here:
__init__(self, value)
__repr__(self)
getChildNodes(self)
getChildren(self)

Methods inherited from Node:
asList(self)
getType(self)

Data and other attributes inherited from Node:
lineno = None

 
Functions
       
asList(nodearg)
flatten(list)
flatten_nodes(list)

 
Data
        CO_VARARGS = 4
CO_VARKEYWORDS = 8
k = 'lambda'
klasses = {'Add': <class compiler.ast.Add>, 'And': <class compiler.ast.And>, 'AssAttr': <class compiler.ast.AssAttr>, 'AssList': <class compiler.ast.AssList>, 'AssName': <class compiler.ast.AssName>, 'AssTuple': <class compiler.ast.AssTuple>, 'Assert': <class compiler.ast.Assert>, 'Assign': <class compiler.ast.Assign>, 'AugAssign': <class compiler.ast.AugAssign>, 'Backquote': <class compiler.ast.Backquote>, ...}
nodes = {'add': <class compiler.ast.Add>, 'and': <class compiler.ast.And>, 'assattr': <class compiler.ast.AssAttr>, 'assert': <class compiler.ast.Assert>, 'assign': <class compiler.ast.Assign>, 'asslist': <class compiler.ast.AssList>, 'assname': <class compiler.ast.AssName>, 'asstuple': <class compiler.ast.AssTuple>, 'augassign': <class compiler.ast.AugAssign>, 'backquote': <class compiler.ast.Backquote>, ...}