Lines Matching refs:ChainMap
27 :class:`ChainMap` dict-like class for creating a single view of multiple mappings
37 :class:`ChainMap` objects
42 A :class:`ChainMap` class is provided for quickly linking a number of mappings
48 .. class:: ChainMap(*maps)
50 A :class:`ChainMap` groups multiple dicts or other mappings together to
60 A :class:`ChainMap` incorporates the underlying mappings by reference. So, if
62 in :class:`ChainMap`.
77 Returns a new :class:`ChainMap` containing a new map followed by
81 is equivalent to: ``ChainMap({}, *d.maps)``. If any keyword arguments
94 Property returning a new :class:`ChainMap` containing all of the maps in
100 ``ChainMap(*d.maps[1:])``.
102 Note, the iteration order of a :class:`ChainMap` is determined by
107 >>> list(ChainMap(adjustments, baseline))
133 :meth:`~collections.ChainMap.new_child` method and the
134 :attr:`~collections.ChainMap.parents` property.
145 :class:`ChainMap` Examples and Recipes
154 pylookup = ChainMap(locals(), globals(), vars(builtins))
169 combined = ChainMap(command_line_args, os.environ, defaults)
173 Example patterns for using the :class:`ChainMap` class to simulate nested
176 c = ChainMap() # Create root context
192 The :class:`ChainMap` class only makes updates (writes and deletions) to the
197 class DeepChainMap(ChainMap):
198 'Variant of ChainMap that allows direct updates to inner scopes'