Runtime Utility Methods

types.MappingProxyType.values()

Expose the wrapped mapping’s values. For a dictionary this is a live view; it does not make contained mutable objects immutable.

Formal Syntax & Structure

python syntaxpython
proxy.values()

Return Value

mapping view

The mapping view result described above.

Working Example

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