defaultdict

Standard library class collections.defaultdict View source
class defaultdict
class defaultdict[K, V, S]
Fields 4
default_factory S
K type
V type
S TypeTrait[CallableTrait[V]]
Constructors 4
__init__
__init__(self: defaultdict[K, VV, Function[V]], VV: TypeTrait[V])
Defined in collections
__init__
__init__(self, f: S)
Defined in collections
__init__
__init__(self: defaultdict[K, VV, Function[V]], VV: TypeTrait[V], other: OrderedDict[K, V])
Defined in collections
__init__
__init__(self, f: S, other: OrderedDict[K, V])
Defined in collections
Methods 1
copy
copy(self)
Defined in collections
Special methods 8
__missing__
__missing__(self, key: K)
Defined in collections
__getitem__
__getitem__(self, key: K)
Defined in collections
__dict_do_op_throws__
__dict_do_op_throws__(self, key: K, other: Z, op: F, F: type, Z: type)
Defined in collections
__copy__
__copy__(self)
Defined in collections
__deepcopy__
__deepcopy__(self)
Defined in collections
__eq__
__eq__(self, other: defaultdict[K, V, S])
Defined in collections
__ne__
__ne__(self, other: defaultdict[K, V, S])
Defined in collections
__repr__
__repr__(self)
Defined in collections