Package portage :: Package dep :: Class ExtendedAtomDict
[hide private]

Class ExtendedAtomDict

source code

               object --+        
                        |        
   cache.mappings.Mapping --+    
                            |    
cache.mappings.MutableMapping --+
                                |
                               ExtendedAtomDict

dict() wrapper that supports extended atoms as keys and allows lookup of a normal cp against other normal cp and extended cp. The value type has to be given to __init__ and is assumed to be the same for all values.

Instance Methods [hide private]
 
__init__(self, value_class)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
copy(self) source code
 
__iter__(self) source code
 
iteritems(self) source code
 
__delitem__(self, cp) source code
 
keys(self) source code
 
items(self) source code
 
__len__(self) source code
 
setdefault(self, cp, default=None) source code
 
__getitem__(self, cp) source code
 
__setitem__(self, cp, val) source code
 
__eq__(self, other) source code
 
clear(self) source code

Inherited from cache.mappings.MutableMapping: pop, popitem, update

Inherited from cache.mappings.Mapping: __contains__, __repr__, get, iterkeys, itervalues, values

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

Class Variables [hide private]
  __slotnames__ = [u'_extended', u'_normal', u'_value_class']
Properties [hide private]
  _extended
  _normal
  _value_class

Inherited from object: __class__

Method Details [hide private]

__init__(self, value_class)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__iter__(self)

source code 
Overrides: cache.mappings.Mapping.__iter__

iteritems(self)

source code 
Overrides: cache.mappings.Mapping.iteritems

keys(self)

source code 
Overrides: cache.mappings.Mapping.__iter__

items(self)

source code 
Overrides: cache.mappings.Mapping.iteritems

__len__(self)
(Length operator)

source code 
Overrides: cache.mappings.Mapping.__len__

setdefault(self, cp, default=None)

source code 
Overrides: cache.mappings.MutableMapping.setdefault

clear(self)

source code 
Overrides: cache.mappings.MutableMapping.clear