Searched refs:ChainMap (Results 1 – 25 of 29) sorted by relevance
12
/third_party/python/Lib/test/ |
D | test_collections.py | 19 from collections import ChainMap 82 c = ChainMap() 148 cm = ChainMap(adjustments, baseline) 156 self.assertEqual(ChainMap().maps, [{}]) # no-args --> one new dict 157 self.assertEqual(ChainMap({1:2}).maps, [{1:2}]) # 1 arg --> list 160 self.assertFalse(ChainMap()) 161 self.assertFalse(ChainMap({}, {})) 162 self.assertTrue(ChainMap({1:2}, {})) 163 self.assertTrue(ChainMap({}, {1:2})) 166 class DefaultChainMap(ChainMap): [all …]
|
D | test_pickle.py | 206 return collections.ChainMap({}, pickle.dispatch_table) 266 return collections.ChainMap({}, pickle.dispatch_table)
|
D | test_pprint.py | 1099 d = collections.ChainMap() 1103 d = collections.ChainMap(dict(items)) 1115 d = collections.ChainMap(dict(items), collections.OrderedDict(items))
|
D | test_typing.py | 2062 class MyChain(typing.ChainMap[str, T]): ... 3579 self.assertIs(type(typing.ChainMap()), collections.ChainMap) 3580 self.assertIs(type(typing.ChainMap[KT, VT]()), collections.ChainMap) 3581 self.assertIs(type(typing.ChainMap[str, int]()), collections.ChainMap) 3582 class CM(typing.ChainMap[KT, VT]): ... 3588 class MyChainMap(typing.ChainMap[str, int]): 3594 self.assertIsSubclass(MyChainMap, collections.ChainMap) 3595 self.assertNotIsSubclass(collections.ChainMap, MyChainMap) 4839 typing.ChainMap: 'ChainMap', 4878 typing.ChainMap[Any, Any]: 'ChainMap',
|
D | test_types.py | 961 mapping = collections.ChainMap({'x': 1}, {'y': 2}) 1061 mapping = collections.ChainMap(d1, d2) 1073 self.assertIsInstance(copy, collections.ChainMap)
|
D | test_functools.py | 1888 m = mro(collections.ChainMap, haystack) 1889 self.assertEqual(m, [collections.ChainMap, c.MutableMapping, c.Mapping, 1957 g.register(collections.ChainMap, lambda obj: "chainmap")
|
D | test_grammar.py | 18 from collections import ChainMap
|
/third_party/python/Doc/library/ |
D | collections.rst | 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 [all …]
|
D | typing.rst | 1499 .. class:: ChainMap(collections.ChainMap, MutableMapping[KT, VT]) 1501 A generic version of :class:`collections.ChainMap`. 1507 :class:`collections.ChainMap` now supports ``[]``. See :pep:`585` and
|
/third_party/python/Lib/ |
D | string.py | 53 from collections import ChainMap as _ChainMap
|
D | typing.py | 2126 ChainMap = _alias(collections.ChainMap, 2) variable
|
D | pprint.py | 513 _dispatch[_collections.ChainMap.__repr__] = _pprint_chain_map
|
D | configparser.py | 142 from collections import ChainMap as _ChainMap
|
/third_party/python/Misc/NEWS.d/ |
D | 3.7.0b2.rst | 268 collections.ChainMap() preserves the order of the underlying mappings.
|
D | 3.6.1rc1.rst | 329 Various updates to typing module: typing.Counter, typing.ChainMap, improved
|
D | 3.5.4rc1.rst | 817 Various updates to typing module: typing.Counter, typing.ChainMap, improved
|
D | 3.10.0a7.rst | 482 Add keyword arguments support to ``ChainMap.new_child()``.
|
D | 3.9.0a6.rst | 808 :class:`collections.ChainMap`.
|
D | 3.10.0a3.rst | 333 ChainMap.__iter__ no longer calls __getitem__ on underlying maps
|
D | 3.8.0b1.rst | 791 Add missing names to ``typing.__all__``: ``ChainMap``, ``ForwardRef``,
|
D | 3.7.0a1.rst | 3486 Various updates to typing module: typing.Counter, typing.ChainMap, improved
|
/third_party/python/Lib/unittest/ |
D | case.py | 298 class _OrderedChainMap(collections.ChainMap):
|
/third_party/python/Lib/collections/ |
D | __init__.py | 952 class ChainMap(_collections_abc.MutableMapping): class
|
/third_party/python/Doc/whatsnew/ |
D | 3.3.rst | 1020 Addition of a new :class:`~collections.ChainMap` class to allow treating a
|
D | 3.7.rst | 2428 * :class:`collections.ChainMap` now preserves the order of the underlying
|
12