Lines Matching refs:default_factory
688 .. class:: defaultdict([default_factory[, ...]])
695 The first argument provides the initial value for the :attr:`default_factory`
706 If the :attr:`default_factory` attribute is ``None``, this raises a
709 If :attr:`default_factory` is not ``None``, it is called without arguments
713 If calling :attr:`default_factory` raises an exception this exception is
723 :attr:`default_factory`.
729 .. attribute:: default_factory
743 Using :class:`list` as the :attr:`~defaultdict.default_factory`, it is easy to group a
755 mapping; so an entry is automatically created using the :attr:`~defaultdict.default_factory`
769 Setting the :attr:`~defaultdict.default_factory` to :class:`int` makes the
782 :attr:`~defaultdict.default_factory` function calls :func:`int` to supply a default count of
797 Setting the :attr:`~defaultdict.default_factory` to :class:`set` makes the