I am can resolve backward named references in a block of code.
Objects created by a block of code that are inserted into a dictionary
I store a reference to may later indicate a backreference to one of those
objects by creating a 'reference.Reference', specifying the key to be
looked up later.
Instantiate me with a lookup table populated with references, then
resolve a graph of objects using that table.
| Method Summary |
| |
__init__(self,
lookup)
Create a resolver. |
| |
res(self,
obj)
Traverse a single object's graph and resolve it and its
subobjects. |
| |
resdict(self,
dict)
Resolve a dictionary; private use |
| |
resinst(self,
inst)
Resolve an instance; private use |
| |
reslist(self,
lst)
Resolve a list; private use |
| |
resolve(self,
reflist)
Resolve a list of references. |