dragon.data.ddict.DDictValuesView

class DDictValuesView[source]

Bases: object

A live view of the values of a DDict object. This object provides a values view much like the native Python dict has a keys view object which is created by calling the values method on the DDict. The DDictValuesView provides several operations which are efficiently implemented including len and iter.

Unlike native dict objects, DDict objects do not support maintaining the order of keys inserted into the DDict. Hence, reversed is not supported.

__init__(ddict, managers, local=False)[source]

Methods

__init__(ddict, managers[, local])

Attributes

mapping

Calling this results in a read-only version of the DDict.

__init__(ddict, managers, local=False)[source]
__len__()[source]
__contains__(key)[source]
property mapping

Calling this results in a read-only version of the DDict.

Returns:

DDictMappingProxy: A read-only proxy to the original DDict.