class documentation

class ChainMap(Mapping['_KT', '_VT']): (source)

Constructor: ChainMap(maps)

View In Hierarchy

Combine multiple mappings for sequential lookup.

For example, to emulate Python's normal lookup sequence:

import __builtin__ pylookup = ChainMap((locals(), globals(), vars(__builtin__)))
Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Instance Variable _maps Undocumented
def __getitem__(self, key: _KT) -> _VT: (source)

Undocumented

def __init__(self, maps: Sequence[Mapping[_KT, _VT]]): (source)

Undocumented

def __iter__(self) -> Iterator[_KT]: (source)

Undocumented

def __len__(self) -> int: (source)

Undocumented

Undocumented