def __eq__(self, other):
return tuple(sorted(self.iter())) == tuple(sorted(other.iter()))
+ def issubset(self, other):
+ return self <= other
+
+ def issuperset(self, other):
+ return self >= other
+
+ def union(self, other):
+ return self | other
+
+ def intersection(self, other):
+ return self & other
+
+ def difference(self, other):
+ return self - other
+
+ def symmetric_difference(self, other):
+ return self ^ other
+
+ def copy(self):
+ return set(self)
+
def __hash__(self):
return hash(tuple(self.iter()))
:param errors: If using a codec, this is the error handler.
See :func:`str.decode` to which this is passed on.
- :raises ObjectDestoryedError: if used after destroyed.
+ :raises ObjectDestroyedError: if used after destroyed.
"""
_tags_p = base.MemoryPointer()