Runtime Utility Methods

types.MappingProxyType.items()

Expose the wrapped mapping’s items; for a dictionary the view reflects later changes.

Formal Syntax & Structure

python syntaxpython
proxy.items()

Return Value

mapping view

The mapping view result described above.

Working Example

Example Snippetpython
import typesd={"x":1}; p=types.MappingProxyType(d); v=p.items(); d["y"]=2print(list(v))
Python Reference