cf.Dict

class cf.Dict(*args, **kwargs)[source]

Bases: _abcoll.MutableMapping

A dictionary-like object with attributes.

Initialization

Parameters:
args, kwargs : optional

Keys and values are initialized exactly as for a built-in dict.

Dict methods

copy Return a deep copy.
equals True if two instances are logically equal, False otherwise.

Dict dict-like methods

These methods provide functionality exactly as their counterparts in a built-in dict.

clear
get
has_key
items
iteritems
iterkeys
itervalues
keys
pop If key is not found, d is returned if given, otherwise KeyError is raised.
popitem as a 2-tuple; but raise KeyError if D is empty.
setdefault
update If E present and has a .keys() method, does: for k in E: D[k] = E[k]
values

Table Of Contents

Previous topic

cf.Coordinate.where

Next topic

cf.Dict.copy

This Page