def hammingDistance(self, tree):
        '''
        Finds the Hamming distance between this tree and the one passed as argument.
        '''

        s1 = ' '.join(map(View.__str__, self.views))
        s2 = ' '.join(map(View.__str__, tree))

        return ViewClient.__hammingDistance(s1, s2)
def hammingDistance ( self , tree ) : s1 = ' ' . join ( map ( View . __str__ , self . views ) ) s2 = ' ' . join ( map ( View . __str__ , tree ) ) return ViewClient . __hammingDistance ( s1 , s2 )
Finds the Hamming distance between this tree and the one passed as argument.