Collection Attributes
collections.ChainMap.parents
Expose a new chain omitting the first mapping, useful for looking past local bindings. The remaining mappings are shared.
Formal Syntax & Structure
python syntaxpython
chain.parentsReturn Value
ChainMap
The ChainMap result described above.
Working Example
Example Snippetpython
import collectionsc=collections.ChainMap({"x":1},{"x":2})print(c.parents["x"])