def __eq__(self, other):
        """
        :return: True iif other is a parameter and has the same name than
            this.
        :rtype: bool"""

        result = isinstance(other, Parameter)

        if result:
            if isinstance(self.name, string_types):
                if isinstance(other.name, string_types):
                    result = self.name == other.name

                else:
                    result = other.name.match(self.name)

            else:
                if isinstance(other.name, string_types):
                    result = self.name.match(other.name)

                else:
                    result = self.name.pattern == other.name.pattern

        return result
def __eq__ ( self , other ) : result = isinstance ( other , Parameter ) if result : if isinstance ( self . name , string_types ) : if isinstance ( other . name , string_types ) : result = self . name == other . name else : result = other . name . match ( self . name ) else : if isinstance ( other . name , string_types ) : result = self . name . match ( other . name ) else : result = self . name . pattern == other . name . pattern return result
:return: True iif other is a parameter and has the same name than
            this.
        :rtype: bool