parameters: (self, i)
docstring: Equality with clear int
docstring_summary: Equality with clear int
docstring_tokens: Equality with clear int
function: def equal(self, i):
          """ Equality with clear int """
          if self.value_type is sgf2n:
              d = self.value - sgf2n(2**i)
              bits = d.bit_decompose(self.bit_length)
              return 1 - bits[i]
          else:
              return self.value.equal(i, self.bit_length)
function_tokens: def equal ( self , i ) : if self . value_type is sgf2n : d = self . value - sgf2n ( 2 ** i ) bits = d . bit_decompose ( self . bit_length ) return 1 - bits [ i ] else : return self . value . equal ( i , self . bit_length )