treams.util.OrderedSet¶
- class treams.util.OrderedSet¶
Ordered set.
A abstract base class that combines a sequence and set. In contrast to regular sets it is expected that the equality comparison only returns True if all entries are in the same order.
Methods
__and__
(other)__eq__
(other)Equality test.
__ge__
(other)Return self>=value.
__getitem__
(index)__gt__
(other)Return self>value.
__le__
(other)Return self<=value.
__len__
()__lt__
(other)Return self<value.
__ne__
(value, /)Return self!=value.
__or__
(other)Return self|value.
__repr__
()Return repr(self).
__str__
()Return str(self).
__sub__
(other)__xor__
(other)count
(value)index
(value, [start, [stop]])Raises ValueError if the value is not present.
isdisjoint
(other)Return True if two sets have a null intersection.
__le__
(other)Return self<=value.
__lt__
(other)Return self<value.
__str__
()Return str(self).
__repr__
()Return repr(self).
__or__
(other)Return self|value.
__and__
(other)__sub__
(other)__xor__
(other)__ge__
(other)Return self>=value.
__len__
()__ne__
(value, /)Return self!=value.
__getitem__
(index)__gt__
(other)Return self>value.