Module cma :: Class DerivedDictBase
[hide private]
[frames] | no frames]

Class DerivedDictBase

source code

       object --+            
                |            
    _abcoll.Sized --+        
                    |        
       object --+   |        
                |   |        
 _abcoll.Iterable --+        
                    |        
       object --+   |        
                |   |        
_abcoll.Container --+        
                    |        
      _abcoll.Mapping --+    
                        |    
   _abcoll.MutableMapping --+
                            |
                           DerivedDictBase
Known Subclasses:

for conveniently adding "features" to a dictionary. The actual dictionary is in self.data. Copy-paste and modify setitem, getitem, and delitem, if necessary.

Details: This is the clean way to subclass build-in dict.

Nested Classes [hide private]

Inherited from _abcoll.Sized: __metaclass__

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__len__(self) source code
 
__contains__(self, key) source code
 
__iter__(self) source code
 
__setitem__(self, key, value)
defines self[key] = value
source code
 
__getitem__(self, key)
defines self[key]
source code
 
__delitem__(self, key) source code

Inherited from _abcoll.MutableMapping: clear, pop, popitem, setdefault, update

Inherited from _abcoll.Mapping: __eq__, __ne__, get, items, iteritems, iterkeys, itervalues, keys, values

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__

Class Methods [hide private]

Inherited from _abcoll.Sized: __subclasshook__

Class Variables [hide private]
  __abstractmethods__ = frozenset([])
  _abc_cache = <_weakrefset.WeakSet object at 0x106bc88d0>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x106bc8950>
  _abc_negative_cache_version = 27
  _abc_registry = <_weakrefset.WeakSet object at 0x106bc8910>

Inherited from _abcoll.Mapping: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__len__(self)
(Length operator)

source code 
Overrides: _abcoll.Sized.__len__

__contains__(self, key)
(In operator)

source code 
Overrides: _abcoll.Container.__contains__

__iter__(self)

source code 
Overrides: _abcoll.Iterable.__iter__

__setitem__(self, key, value)
(Index assignment operator)

source code 
defines self[key] = value
Overrides: _abcoll.MutableMapping.__setitem__

__getitem__(self, key)
(Indexing operator)

source code 
defines self[key]
Overrides: _abcoll.Mapping.__getitem__

__delitem__(self, key)
(Index deletion operator)

source code 
Overrides: _abcoll.MutableMapping.__delitem__