Collection Interface ABCs

collections.abc.ValuesView

Mapping view of values, with iteration, length and membership but no general set interface. Values need not be unique.

Formal Syntax & Structure

python syntaxpython
collections.abc.ValuesView

Return Value

type

Abstract base class object representing the described interface; use it for recognition or inheritance.

Working Example

Example Snippetpython
import collections.abcprint(isinstance({"x":1}.values(),collections.abc.ValuesView))
Python Reference