class documentation

A collection of namespaced symbols.

Method __getitem__ Undocumented
Method __init__ Initialize an environment.
Method __setitem__ Undocumented
Method getattr Undocumented
Method is_self_attr Undocumented
Method lookup Undocumented
Method setattr Undocumented
Instance Variable ast Undocumented
Instance Variable attrs Undocumented
Instance Variable cls Undocumented
Instance Variable env Undocumented
Instance Variable parent Undocumented
Instance Variable ret Undocumented
Instance Variable scope Undocumented
Instance Variable self_var Undocumented
def __getitem__(self, symbol): (source)

Undocumented

def __init__(self, ast, scope, parent, cls): (source)

Initialize an environment. Arguments: ast: An ast module scope: The namespace key (e.g. module:class A:function f) parent: The env of the directly enclosing namespace cls: The class currently being defined (None if we are not in a class definition) Other attributes defined: env: The dictionary holding the symbol table for this environment attrs: Attributes defined on the current class self_var: The `self` variable in method definitions ret: The `return` variable for functions

def __setitem__(self, symbol, value): (source)

Undocumented

def getattr(self, attrib): (source)

Undocumented

def is_self_attr(self, node): (source)

Undocumented

def lookup(self, symbol): (source)

Undocumented

def setattr(self, attrib, value): (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

self_var = (source)

Undocumented