object to make sure we keep updated of dict in _doc. We just override
a dict and maintain change in doc reference (doc[keyt] obviously).
if init_vals is specified, doc is overwritten with the dict given.
Otherwise, the values already in doc are used.
new empty dictionary
|
__init__(self,
doc,
item_type=None,
init_vals=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
v, remove specified key and return the corresponding value
|
pop(self,
key,
default=None)
If key is not found, d is returned if given, otherwise KeyError is
raised |
source code
|
|
|
D.get(k,d), also set D[k]=d if k not in D
|
|
|
None
|
update(self,
value)
Update D from E and F: for k in E: D[k] = E[k] (if E has keys else:
for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k] |
source code
|
|
|
(k, v), remove and return some (key, value) pair as a
|
|
|
None
|
|
|
Inherited from dict:
__cmp__,
__contains__,
__eq__,
__ge__,
__getattribute__,
__getitem__,
__gt__,
__hash__,
__iter__,
__le__,
__len__,
__lt__,
__ne__,
__new__,
__repr__,
copy,
fromkeys,
get,
has_key,
items,
iteritems,
iterkeys,
itervalues,
keys,
values
Inherited from object:
__delattr__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
|