# `defaultdict`

digraph inheritance733fdbed58 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "defaultdict" [URL="#taurus.core.util.containers.defaultdict",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="defaultdict(default_factory=None, /, [...]) --> dict with default factory"]; }

class defaultdict

  defaultdict(default_factory=None, /, […]) –> dict with default factory

  The default factory is called without arguments to produce a new value when a key is not present, in __getitem__ only. A defaultdict compares equal to a dict with the same items. All remaining arguments are treated the same as if they were passed to the dict constructor, including keyword arguments.

  Import from `taurus.core.util.containers` as:

      from taurus.core.util.containers import defaultdict

  copy() → a shallow copy of D.
  default_factory

    Factory for default value called by __missing__().