(self, value)
return self
Remove an element.

        It will warn if the value to discard is inexistent.

        Parameters
        ----------
        value: object
            Value to discard.

        Returns
        -------
        self: object
            Return self.
Remove an element.
Remove an element .
def discard(self, value):
        """Remove an element.

        It will warn if the value to discard is inexistent.

        Parameters
        ----------
        value: object
            Value to discard.

        Returns
        -------
        self: object
            Return self.
        """
        if value not in self._innercontainer:
            warnings.warn("Element %s to discard is not in the collection, skip." % (value.__str__()),
                          category=InexistentElementWarning,
                          stacklevel=3)
        else:
            self._innercontainer.remove(value)
        return self
def discard ( self , value ) : if value not in self . _innercontainer : warnings . warn ( "Element %s to discard is not in the collection, skip." % ( value . __str__ ( ) ) , category = InexistentElementWarning , stacklevel = 3 ) else : self . _innercontainer . remove ( value ) return self