parameters: (self, other)
docstring: Uses XOR to determine which bits are different in 'other'.
docstring_summary: Uses XOR to determine which bits are different in 'other'.
docstring_tokens: Uses XOR to determine which bits are different in other .
function: def diff(self, other):
          """
          Uses XOR to determine which bits are different in 'other'.
          """
          if self.get_type() is other.get_type():
              if self.get_value() == other.get_value():
                  return NoDiffMember(self.name, self)
  
              else:
                  difference = self.value ^ other.get_value()
                  return BitfieldMember(self.name, difference)
  
          else:
              raise Exception(
                  f"type {type(self)} member cannot be diffed with type {type(other)}")
function_tokens: def diff ( self , other ) : if self . get_type ( ) is other . get_type ( ) : if self . get_value ( ) == other . get_value ( ) : return NoDiffMember ( self . name , self ) else : difference = self . value ^ other . get_value ( ) return BitfieldMember ( self . name , difference ) else : raise Exception ( f"type {type(self)} member cannot be diffed with type {type(other)}" )