(self)
Some objects don't have a __str__ method (regex),
            so we'll need to return the string representation
            of the object.
Some objects don't have a __str__ method (regex),
            so we'll need to return the string representation
            of the object.
Some objects don t have a __str__ method ( regex ) so we ll need to return the string representation of the object .
def getStr(self):
        """ Some objects don't have a __str__ method (regex),
            so we'll need to return the string representation
            of the object.
        """
        if self.value is None:
            return None
        elif self.type == "regex":
            return self.value.pattern
        elif self.type == 'list':
            return '[list]'
        else:
            return str(self.value)
def getStr ( self ) : if self . value is None : return None elif self . type == "regex" : return self . value . pattern elif self . type == 'list' : return '[list]' else : return str ( self . value )