lxml.html._setmixin module — lxml documentation

# lxml.html._setmixin module

class `lxml.html._setmixin.` `SetMixin`

  Bases: `collections.abc.MutableSet`

  Mix-in for sets. You must define __iter__, add, remove

  classmethod `_from_iterable`(it)

    Construct an instance of the class from any iterable input.

    Must override this method if the class constructor signature does not accept an iterable for an input.

  `copy`()
  `difference`(other)
  `difference_update`(other)
  `discard`(item)

    Remove an element. Do not raise an exception if absent.

  `intersection`(other)
  `intersection_update`(other)
  `issubset`(other)

    Return self<=value.

  `issuperset`(other)

    Return self>=value.

  `symmetric_difference`(other)
  `symmetric_difference_update`(other)
  `union`(other)
  `update`(other)
  `_abc_impl` = <_abc._abc_data object>