OrderedDict
class OrderedDict[K, V]
Fields
2
K
type
V
type
Constructors
5
__init__(self: Self, items: Generator[Tuple[(K, V)]], /)
Defined in
internal.types.collections.dict__init__(self: Self, other: OrderedDict[(K, V)], /)
Defined in
internal.types.collections.dict
Methods
13
get(self: Self, key: K, /) -> Optional[V]
Defined in
internal.types.collections.dictget(self: Self, key: K, default: V, /)
Defined in
internal.types.collections.dictsetdefault(self: Self, key: K, value: V, /) -> V
Defined in
internal.types.collections.dictpop(self: Self, key: K, /) -> V
Defined in
internal.types.collections.dictpop(self: Self, key: K, missing, /)
Defined in
internal.types.collections.dictupdate(self: Self, other, /)
Defined in
internal.types.collections.dictupdate(self: Dict[(K, int)], other: Counter[K])
Added by
collectionsupdate[S: type](self: Dict[(K, V)], other: defaultdict[(K, V, S)])
Added by
collectionsfromkeys[K: type, V: type](ks: Generator[K], v: V, /) -> OrderedDict[(K, V)]
Defined in
internal.types.collections.dictincrement[T: type](self: Self, key: K, by: T = 1)
Defined in
internal.types.collections.dict
Special methods
24
__eq__(self: Self, other: OrderedDict[(K, V)], /) -> bool
Defined in
internal.types.collections.dict__eq__(self: Dict[(K, int)], other: Counter[K])
Added by
collections__eq__[S: type](self: Dict[(K, V)], other: defaultdict[(K, V, S)])
Added by
collections__ne__(self: Self, other: OrderedDict[(K, V)], /) -> bool
Defined in
internal.types.collections.dict__ne__(self: Dict[(K, int)], other: Counter[K])
Added by
collections__ne__[S: type](self: Dict[(K, V)], other: defaultdict[(K, V, S)])
Added by
collections__dict_do_op_throws__[F: type, Z: type](self: Self, key: K, other: Z, op: F)
Defined in
internal.types.collections.dict__dict_do_op__[F: type, Z: type](self: Self, key: K, other: Z, dflt: V, op: F)
Defined in
internal.types.collections.dict