code: def remove(self, name):
          
          attrs = [attr for attr in self.attributes if attr.name == name.strip()]
          if not attrs:
              raise ValueError(name)
          for attr in attrs:
              self.attributes.remove(attr)
docs: Remove all attributes with the given *name*.
  
          Raises :exc:`ValueError` if none were found.