_abcoll :: MutableMapping :: Class MutableMapping
[hide private]
[frames] | no frames]

Class MutableMapping

object --+        
         |        
     Sized --+    
             |    
object --+   |    
         |   |    
  Iterable --+    
             |    
object --+   |    
         |   |    
 Container --+    
             |    
       Mapping --+
                 |
                MutableMapping

A MutableMapping is a generic container for associating key/value pairs.

This class provides concrete generic implementations of all methods except for __getitem__, __setitem__, __delitem__, __iter__, and __len__.

Nested Classes [hide private]
    Inherited from Sized
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
__delitem__(self, key)
 
__setitem__(self, key, value)
None
clear(D)
Remove all items from D.
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
popitem(D)
as a 2-tuple; but raise KeyError if D is empty.
D.get(k,d), also set D[k]=d if k not in D
setdefault(D, k, d=...)
None
update(D, E=..., **F)
Update D from mapping/iterable E and F.
    Inherited from Mapping
 
__contains__(self, key)
 
__eq__(self, other)
 
__getitem__(self, key)
 
__ne__(self, other)
D[k] if k in D, else d
get(D, k, d=...)
d defaults to None.
list of D's (key, value) pairs, as 2-tuples
items(D)
an iterator over the (key, value) items of D
iteritems(D)
an iterator over the keys of D
iterkeys(D)
an iterator over the values of D
itervalues(D)
list of D's keys
keys(D)
list of D's values
values(D)
    Inherited from Sized
 
__len__(self)
    Inherited from Iterable
 
__iter__(self)
    Inherited from object
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__format__(...)
default object formatter
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__reduce__(...)
helper for pickle
 
__reduce_ex__(...)
helper for pickle
 
__repr__(x)
repr(x)
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
int
__sizeof__()
size of object in memory, in bytes
 
__str__(x)
str(x)
Class Methods [hide private]
    Inherited from Sized
 
__subclasshook__(cls, C)
Abstract classes can override this to customize issubclass().
Class Variables [hide private]
  __abstractmethods__ = frozenset(['__delitem__', '__getitem__',...
  __marker = <object object at 0x7f205c521030>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x7f205a0...
  _abc_negative_cache_version = 18
  _abc_registry = <_weakrefset.WeakSet object at 0x7f205c522090>
    Inherited from Mapping
  __hash__ = None
hash(x)
    Inherited from Sized
  _abc_cache = <_weakrefset.WeakSet object at 0x7f205c5baf90>
Properties [hide private]
    Inherited from object
  __class__
the object's class
Method Details [hide private]

update(D, E=..., **F)

 

Update D from mapping/iterable E and F. If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

Returns: None

Class Variable Details [hide private]

__abstractmethods__

Value:
frozenset(['__delitem__',
           '__getitem__',
           '__iter__',
           '__len__',
           '__setitem__'])

_abc_negative_cache

Value:
<_weakrefset.WeakSet object at 0x7f205a0cafd0>