OrderedDict
class OrderedDict[K, V]
Fields
2
K
type
V
type
Constructors
5
__init__(self: OrderedDict[K, V], other: defaultdict[K, V, S], S: type)
Added by
collections
Methods
13
get(self, key: K)
Defined in
internal.types.collections.dictget(self, key: K, default: V)
Defined in
internal.types.collections.dictpop(self, key: K)
Defined in
internal.types.collections.dictpop(self, key: K, missing)
Defined in
internal.types.collections.dictupdate(self, other)
Defined in
internal.types.collections.dictupdate(self: OrderedDict[K, int], other: Counter[K])
Added by
collectionsupdate(self: OrderedDict[K, V], other: defaultdict[K, V, S], S: type)
Added by
collectionsfromkeys(ks: Generator[K], v: V, K: type, V: type)
Defined in
internal.types.collections.dict
Special methods
24
__eq__(self, other: OrderedDict[K, V])
Defined in
internal.types.collections.dict__eq__(self: OrderedDict[K, int], other: Counter[K])
Added by
collections__eq__(self: OrderedDict[K, V], other: defaultdict[K, V, S], S: type)
Added by
collections__ne__(self, other: OrderedDict[K, V])
Defined in
internal.types.collections.dict__ne__(self: OrderedDict[K, int], other: Counter[K])
Added by
collections__ne__(self: OrderedDict[K, V], other: defaultdict[K, V, S], S: type)
Added by
collections__dict_do_op_throws__(self, key: K, other: Z, op: F, F: type, Z: type)
Defined in
internal.types.collections.dict__dict_do_op__(self, key: K, other: Z, dflt: V, op: F, F: type, Z: type)
Defined in
internal.types.collections.dict