defaultdict
class defaultdict[K, V, S]
Fields
4
default_factory
S
K
type
V
type
S
TypeTrait[CallableTrait[([], V)]]
Constructors
8
__new__[VV: TypeTrait[V]]() -> defaultdict[(K, VV, Function[([], V)])]
Defined in
collections__new__[VV: TypeTrait[V]](other: Dict[(K, V)], /) -> defaultdict[(K, VV, Function[([], V)])]
Defined in
collections__new__[VV: TypeTrait[V], F: type](other: defaultdict[(K, V, F)], /) -> defaultdict[(K, VV, Function[([], V)])]
Defined in
collections__new__[F: type](f: S, other: defaultdict[(K, V, F)], /) -> defaultdict[(K, V, S)]
Defined in
collections__new__[VV: TypeTrait[V]](other: Counter[K], /) -> defaultdict[(K, VV, Function[([], V)])]
Defined in
collections
Methods
13
get(self: Self, key: K, /)
Defined in
collectionsget(self: Self, key: K, default: V, /)
Defined in
collectionspop(self: Self, key: K, /)
Defined in
collectionspop(self: Self, key: K, missing, /)
Defined in
collections
Special methods
18
__dict_do_op_throws__[F: type, Z: type](self: Self, key: K, other: Z, op: F)
Defined in
collections__dict_do_op__[F: type, Z: type](self: Self, key: K, other: Z, default: V, op: F)
Defined in
collections__eq__[F: type](self: Self, other: defaultdict[(K, V, F)], /) -> bool
Defined in
collections__eq__(self: Self, other: Dict[(K, V)], /) -> bool
Defined in
collections__eq__(self: Self, other: Counter[K], /) -> bool
Defined in
collections__ne__[F: type](self: Self, other: defaultdict[(K, V, F)], /) -> bool
Defined in
collections__ne__(self: Self, other: Dict[(K, V)], /) -> bool
Defined in
collections__ne__(self: Self, other: Counter[K], /) -> bool
Defined in
collections