Home | Trees | Indices | Help |
|
---|
|
object --+ | dict --+ | defaultdict
defaultdict(default_factory) --> 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.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
default_factory Factory for default value called by __missing__(). |
|||
Inherited from |
|
|
x.__getattribute__('name') <==> x.name
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
__missing__(key) # Called by __getitem__ for missing key; pseudo-code: if self.default_factory is None: raise KeyError((key,)) self[key] = value = self.default_factory() return value |
Return state information for pickling.
|
repr(x)
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Jun 14 22:07:45 2010 | http://epydoc.sourceforge.net |