/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions
DybPython::asciicat::DD Class Reference

List of all members.

Public Member Functions

def __init__
def __str__

Detailed Description

dict comparison

Definition at line 829 of file asciicat.py.


Constructor & Destructor Documentation

def DybPython::asciicat::DD::__init__ (   self,
  a_,
  b_,
  kwa 
)

Definition at line 833 of file asciicat.py.

00834                                        :
00835         dict.__init__(self, **kwa ) 
00836         a, b = set(a_), set(b_)
00837         c = a.intersection(b)
00838         self['added']   = b - c
00839         self['removed'] = a - c
00840         self['changed'] = set(o for o in c if a_[o] != b_[o])
00841         self['unchanged'] = set(o for o in c if a_[o] == b_[o])
00842         ## specialized
00843         if kwa.get('increments'):
00844             self['allincrements'] = dict( (o,b_[o]-a_[o]) for o in c )
00845             self['increments'] = dict( (o,b_[o]-a_[o]) for o in c if a_[o] != b_[o]  )


Member Function Documentation

def DybPython::asciicat::DD::__str__ (   self)

Definition at line 846 of file asciicat.py.

00847                      :
00848         return pformat(self) 
00849 
00850 


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:55:40 for DybPython by doxygen 1.7.4