Lines Matching refs:ChainMap
27 :class:`ChainMap` dict-like class for creating a single view of multiple mappings
42 :class:`ChainMap` objects
47 A :class:`ChainMap` class is provided for quickly linking a number of mappings
53 .. class:: ChainMap(*maps)
55 A :class:`ChainMap` groups multiple dicts or other mappings together to
65 A :class:`ChainMap` incorporates the underlying mappings by reference. So, if
67 in :class:`ChainMap`.
82 Returns a new :class:`ChainMap` containing a new map followed by
86 is equivalent to: ``ChainMap({}, *d.maps)``. This method is used for
95 Property returning a new :class:`ChainMap` containing all of the maps in
101 ``ChainMap(*d.maps[1:])``.
103 Note, the iteration order of a :class:`ChainMap()` is determined by
108 >>> list(ChainMap(adjustments, baseline))
131 :meth:`~collections.ChainMap.new_child` method and the
132 :attr:`~collections.ChainMap.parents` property.
143 :class:`ChainMap` Examples and Recipes
152 pylookup = ChainMap(locals(), globals(), vars(builtins))
167 combined = ChainMap(command_line_args, os.environ, defaults)
171 Example patterns for using the :class:`ChainMap` class to simulate nested
174 c = ChainMap() # Create root context
190 The :class:`ChainMap` class only makes updates (writes and deletions) to the
195 class DeepChainMap(ChainMap):
196 'Variant of ChainMap that allows direct updates to inner scopes'