kwcoco.util.dict_like

Module Contents

Classes

DictLike

An inherited class must specify the getitem, setitem, and

class kwcoco.util.dict_like.DictLike[source]

Bases: ubelt.NiceRepr

An inherited class must specify the getitem, setitem, and

keys methods.

A class is dictionary like if it has:

__iter__, __len__, __contains__, __getitem__, items, keys, values, get,

and if it should be writable it should have: __delitem__, __setitem__, update,

And perhaps: copy,

__iter__, __len__, __contains__, __getitem__, items, keys, values, get,

and if it should be writable it should have: __delitem__, __setitem__, update,

And perhaps: copy,

asdict[source]
abstract getitem(self, key)[source]
abstract setitem(self, key, value)[source]
abstract delitem(self, key)[source]
abstract keys(self)[source]
__len__(self)[source]
__iter__(self)[source]
__contains__(self, key)[source]
__delitem__(self, key)[source]
__getitem__(self, key)[source]
__setitem__(self, key, value)[source]
items(self)[source]
values(self)[source]
copy(self)[source]
to_dict(self)[source]
update(self, other)[source]
get(self, key, default=None)[source]