def __and__(self, other):                                        #(F1)      
        if self.size < other.size:                                   #(F2)
            bv1 = self._resize_pad_from_left(other.size - self.size) #(F3)
            bv2 = other                                              #(F4)
        elif self.size > other.size:                                 #(F5)
            bv1 = self                                               #(F6)
            bv2 = other._resize_pad_from_left(self.size - other.size)#(F7)
        else:                                                        #(F8)
            bv1 = self                                               #(F9)
            bv2 = other                                             #(F10)
        res = BitVector( size = bv1.size )                          #(F11)
        lpb = map(operator.__and__, bv1.vector, bv2.vector)         #(F12) 
        res.vector = array.array( 'H', lpb )                        #(F13)
        return res                                                  #(F14)
Specify an additional line to display before the generated ones.
dataset/ETHPy150Open networkdynamics/zenlib/src/zen/util/bitvector.py/BitVector.__and__--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/ExtLinA