Lines Matching refs:default_factory
680 .. class:: defaultdict([default_factory[, ...]])
687 The first argument provides the initial value for the :attr:`default_factory`
698 If the :attr:`default_factory` attribute is ``None``, this raises a
701 If :attr:`default_factory` is not ``None``, it is called without arguments
705 If calling :attr:`default_factory` raises an exception this exception is
715 :attr:`default_factory`.
721 .. attribute:: default_factory
731 Using :class:`list` as the :attr:`~defaultdict.default_factory`, it is easy to group a
743 mapping; so an entry is automatically created using the :attr:`~defaultdict.default_factory`
757 Setting the :attr:`~defaultdict.default_factory` to :class:`int` makes the
770 :attr:`~defaultdict.default_factory` function calls :func:`int` to supply a default count of
785 Setting the :attr:`~defaultdict.default_factory` to :class:`set` makes the