dragon.data.ddict.DDictKeysView

class DDictKeysView[source]

Bases: object

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

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.