Package commons :: Module interp :: Class Chainmap
[hide private]
[frames] | no frames]

Class Chainmap

source code

UserDict.DictMixin --+
                     |
                    Chainmap

Combine multiple mappings for sequential lookup.

From http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305268. Modified to support object fields, e.g. "${a.b}".


Copyright: Raymond Hettinger,

Instance Methods [hide private]
 
__init__(self, *maps) source code
 
__getitem__(self, key) source code

Inherited from UserDict.DictMixin: __cmp__, __contains__, __iter__, __len__, __repr__, clear, get, has_key, items, iteritems, iterkeys, itervalues, pop, popitem, setdefault, update, values