OrderedDict

Standard library class
class OrderedDict
class OrderedDict[K, V]
Fields 2
K type
V type
Constructors 5
__init__
__init__(self, capacity: int = 8)
__init__
__init__(self, items: Generator[Tuple[K, V]])
__init__
__init__(self, other: OrderedDict[K, V])
__init__
__init__(self: OrderedDict[K, int], other: Counter[K])
Added by collections
__init__
__init__(self: OrderedDict[K, V], other: defaultdict[K, V, S], S: type)
Added by collections
Methods 13
copy
copy(self)
resize
resize(self, minused: int)
get
get(self, key: K)
get(self, key: K, default: V)
setdefault
setdefault(self, key: K, value: V)
pop
pop(self, key: K)
pop(self, key: K, missing)
popitem
popitem(self)
keys
keys(self)
values
values(self)
items
items(self)
update
update(self, other)
update(self: OrderedDict[K, int], other: Counter[K])
Added by collections
update(self: OrderedDict[K, V], other: defaultdict[K, V, S], S: type)
Added by collections
clear
clear(self)
fromkeys
fromkeys(ks: Generator[K], v: V, K: type, V: type)
increment
increment(self, key: K, by: T = 1, T: type)
Special methods 24
__copy__
__copy__(self)
__deepcopy__
__deepcopy__(self)
__len__
__len__(self)
__bool__
__bool__(self)
__setitem__
__setitem__(self, key: K, value: V)
__getitem__
__getitem__(self, key: K)
__contains__
__contains__(self, key: K)
__delitem__
__delitem__(self, key: K)
__reversed__
__reversed__(self)
__iter__
__iter__(self)
__eq__
__eq__(self, other: OrderedDict[K, V])
__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__
__ne__(self, other: OrderedDict[K, V])
__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
__or__
__or__(self, other)
__ior__
__ior__(self, other)
__repr__
__repr__(self)
__dict_do_op_throws__
__dict_do_op_throws__(self, key: K, other: Z, op: F, F: type, Z: type)
__dict_do_op__
__dict_do_op__(self, key: K, other: Z, dflt: V, op: F, F: type, Z: type)
__to_py__
__to_py__(self)
__from_py__
__from_py__(d: cobj)
__to_gpu__
__to_gpu__(self, cache: AllocCache)
Added by internal.gpu
__from_gpu__
__from_gpu__(self, other: OrderedDict[K, V])
Added by internal.gpu
__from_gpu_new__
__from_gpu_new__(other: OrderedDict[K, V])
Added by internal.gpu
__pickle__
__pickle__(self, jar: Jar)
Added by pickle
__unpickle__
__unpickle__(jar: Jar)
Added by pickle