class documentation
class Env: (source)
A collection of namespaced symbols.
Method | __getitem__ |
Undocumented |
Method | __init__ |
Initialize an environment. |
Method | __setitem__ |
Undocumented |
Method | getattr |
Undocumented |
Method | is |
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 |
Undocumented |
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