parameters: (self, key)
docstring: Remove an element.  Do not raise an exception if absent.
  
          The MutableSet mixin uses this to implement the .remove() method, which
          *does* raise an error when asked to remove a non-existent item.
  
          Example:
              >>> oset = OrderedSet([1, 2, 3])
              >>> oset.discard(2)
              >>> print(oset)
              OrderedSet([1, 3])
              >>> oset.discard(2)
              >>> print(oset)
              OrderedSet([1, 3])
docstring_summary: Remove an element.  Do not raise an exception if absent.
docstring_tokens: Remove an element . Do not raise an exception if absent .
function: def discard(self, key):
          """
          Remove an element.  Do not raise an exception if absent.
  
          The MutableSet mixin uses this to implement the .remove() method, which
          *does* raise an error when asked to remove a non-existent item.
  
          Example:
              >>> oset = OrderedSet([1, 2, 3])
              >>> oset.discard(2)
              >>> print(oset)
              OrderedSet([1, 3])
              >>> oset.discard(2)
              >>> print(oset)
              OrderedSet([1, 3])
          """
          if key in self:
              i = self.map[key]
              del self.items[i]
              del self.map[key]
              for k, v in self.map.items():
                  if v >= i:
                      self.map[k] = v - 1
function_tokens: def discard ( self , key ) : if key in self : i = self . map [ key ] del self . items [ i ] del self . map [ key ] for k , v in self . map . items ( ) : if v >= i : self . map [ k ] = v - 1