viff

changeset 1456:f7f9647ae5b7

BeDOZa: Implemented equals for KeyLists.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Tue, 06 Jul 2010 10:56:30 +0200
parents 682f4b1d5f91
children f424bbdbce03
files viff/bedoza.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/viff/bedoza.py	Tue Jul 06 10:55:48 2010 +0200
     1.2 +++ b/viff/bedoza.py	Tue Jul 06 10:56:30 2010 +0200
     1.3 @@ -65,6 +65,9 @@
     1.4              keys.append(k1 + k2)
     1.5          return BeDOZaKeyList(keys)
     1.6  
     1.7 +    def __eq__(self, other):
     1.8 +        return self.alpha == other.alpha and self.keys == other.keys
     1.9 +
    1.10      def __str__(self):
    1.11          return "(%s, %s)" % (self.alpha, str(self.keys))
    1.12