|
Orbits
1
|
Public Member Functions | |
| def | __init__ |
| def | __missing__ |
| def | __getitem__ |
| def | get |
| def | __len__ |
| def | __iter__ |
| def | __contains__ |
| def | __bool__ |
| def | __repr__ |
| def | fromkeys |
| def | copy |
| def | new_child |
| def | parents |
| def | __setitem__ |
| def | __delitem__ |
| def | popitem |
| def | pop |
| def | clear |
Public Attributes | |
| maps | |
Static Private Attributes | |
| __copy__ = copy | |
A ChainMap groups multiple dicts (or other mappings) together to create a single, updateable view. The underlying mappings are stored in a list. That list is public and can accessed or updated using the *maps* attribute. There is no other state. Lookups search the underlying mappings successively until a key is found. In contrast, writes, updates, and deletions only operate on the first mapping.
| def pip._vendor.distlib.compat.ChainMap.__init__ | ( | self, | |
| maps | |||
| ) |
Initialize a ChainMap by setting *maps* to the given mappings. If no mappings are provided, a single empty dictionary is used.
| def pip._vendor.distlib.compat.ChainMap.__bool__ | ( | self | ) |
| def pip._vendor.distlib.compat.ChainMap.__contains__ | ( | self, | |
| key | |||
| ) |
| def pip._vendor.distlib.compat.ChainMap.__delitem__ | ( | self, | |
| key | |||
| ) |
| def pip._vendor.distlib.compat.ChainMap.__getitem__ | ( | self, | |
| key | |||
| ) |
| def pip._vendor.distlib.compat.ChainMap.__iter__ | ( | self | ) |
| def pip._vendor.distlib.compat.ChainMap.__len__ | ( | self | ) |
| def pip._vendor.distlib.compat.ChainMap.__missing__ | ( | self, | |
| key | |||
| ) |
| def pip._vendor.distlib.compat.ChainMap.__repr__ | ( | self | ) |
| def pip._vendor.distlib.compat.ChainMap.__setitem__ | ( | self, | |
| key, | |||
| value | |||
| ) |
| def pip._vendor.distlib.compat.ChainMap.clear | ( | self | ) |
| def pip._vendor.distlib.compat.ChainMap.copy | ( | self | ) |
| def pip._vendor.distlib.compat.ChainMap.fromkeys | ( | cls, | |
| iterable, | |||
| args | |||
| ) |
| def pip._vendor.distlib.compat.ChainMap.get | ( | self, | |
| key, | |||
default = None |
|||
| ) |
| def pip._vendor.distlib.compat.ChainMap.new_child | ( | self | ) |
| def pip._vendor.distlib.compat.ChainMap.parents | ( | self | ) |
| def pip._vendor.distlib.compat.ChainMap.pop | ( | self, | |
| key, | |||
| args | |||
| ) |
| def pip._vendor.distlib.compat.ChainMap.popitem | ( | self | ) |
|
staticprivate |
| pip._vendor.distlib.compat.ChainMap.maps |
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.