Skip to main content

iterate_mapping_items

No overview available.

def iterate_mapping_items(
mapping: Mapping[Any, Any]
) - > Iterator[Tuple[Any, Any]]

Iterates over the items of a mapping, yielding key-value pairs.

Parameters

NameTypeDescription
mappingMapping[Any, Any]The dictionary or mapping object whose items will be iterated over.

Returns

TypeDescription
Iterator[Tuple[Any, Any]]An iterator yielding tuples of (key, value) from the provided mapping.