Lines Matching refs:default_factory
443 .. class:: defaultdict([default_factory[, ...]])
450 The first argument provides the initial value for the :attr:`default_factory`
462 If the :attr:`default_factory` attribute is ``None``, this raises a
465 If :attr:`default_factory` is not ``None``, it is called without arguments
469 If calling :attr:`default_factory` raises an exception this exception is
479 :attr:`default_factory`.
485 .. attribute:: default_factory
495 Using :class:`list` as the :attr:`default_factory`, it is easy to group a
507 mapping; so an entry is automatically created using the :attr:`default_factory`
521 Setting the :attr:`default_factory` to :class:`int` makes the
534 :attr:`default_factory` function calls :func:`int` to supply a default count of
549 Setting the :attr:`default_factory` to :class:`set` makes the