Package mrv :: Module conf :: Class DiffKey
[hide private]
[frames] | no frames]

Class DiffKey

source code

object --+    
         |    
  DiffData --+
             |
            DiffKey

Implements DiffData on Key level
Instance Methods [hide private]
 
__str__(self)
str(x)
source code
 
_populate(self, A, B)
Find added and removed key values
source code
 
applyTo(self, key)
Apply our changes to the given Key
source code

Inherited from DiffData: __init__, hasDifferences, toStr

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

Class Methods [hide private]
 
_subtractLists(cls, a, b)
Subtract the values of b from a, return the list with the differences
source code
 
_matchLists(cls, a, b)
Returns: list of values that are common to both lists
source code
Properties [hide private]

Inherited from DiffData: added, changed, name, properties, removed, unchanged

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

_matchLists(cls, a, b)
Class Method

source code 
Returns:
list of values that are common to both lists

_populate(self, A, B)

source code 
Find added and removed key values
Overrides: DiffData._populate
Notes:
  • currently the implementation is not index based, but set- and thus value based
  • changed has no meaning in this case and will always be empty