Transformation context.
Contexts are nested dictionaries of named variables. During variable
lookup, variables not found in the local scope are search recursively in
the ancestor contexts.
|
|
__init__(self,
vars=(),
parent=None)
Create a new context. |
|
|
|
|
set(self,
name,
value)
Set the variable with this name. |
|
|
|
|
__setitem__(self,
name,
value)
Set the variable with this name. |
|
|
|
|
get(self,
name)
Lookup the variable with this name. |
|
|
|
|
__getitem__(self,
name)
Lookup the variable with this name. |
|
|
|
|
iter(self)
Iterate over all variables defined in this context. |
|
|
|
|
__iter__(self)
Iterate over all variables defined in this context. |
|
|
|
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
|