|
|
True if D has a key k, else False
|
|
|
__delitem__(x,
y)
del x[y] |
|
|
|
|
|
|
|
|
|
|
|
|
new empty dictionary
|
__init__()
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
|
|
|
|
|
|
|
|
|
|
a new object with type S, a subtype of T
|
|
|
|
|
__setitem__(x,
i,
y)
x[i]=y |
|
|
size of D in memory, in bytes
|
|
None
|
clear(D)
Remove all items from D. |
|
|
a shallow copy of D
|
|
New dict with keys from S and values equal to v
|
fromkeys(dict,
S,
v=...)
v defaults to None. |
|
|
D[k] if k in D, else d
|
get(D,
k,
d=...)
d defaults to None. |
|
|
True if D has a key k, else False
|
|
list of D's (key, value) pairs, as 2-tuples
|
|
an iterator over the (key, value) items of D
|
|
an iterator over the keys of D
|
|
an iterator over the values of D
|
|
list of D's keys
|
|
v, remove specified key and return the corresponding value
|
pop(D,
k,
d=...)
If key is not found, d is returned if given, otherwise KeyError is
raised |
|
|
(k, v), remove and return some (key, value) pair as a
|
popitem(D)
2-tuple; but raise KeyError if D is empty. |
|
|
D.get(k,d), also set D[k]=d if k not in D
|
|
None
|
update(D,
E,
**F)
Update D from dict/iterable E and F. |
|
|
list of D's values
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__ ,
__subclasshook__
|