PNG
IHDR ; IDATxܻn0K
)(pA7LeG{ §㻢|ذaÆ
6lذaÆ
6lذaÆ
6lom$^yذag5 bÆ
6lذaÆ
6lذa{
6lذaÆ
`}HFkm,mӪôô!x|'ܢ˟;E:9&ᶒ}{v]n&6
h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%tMז -lG6mrz2s%9s@-k9=)kB5\+͂ZsٲRn~GRCwIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL /F*\Ԕ#"5m2[S=gnaPeғL
lذaÆ
6l^ḵaÆ
6lذaÆ
6lذa;
_ذaÆ
6lذaÆ
6lذaÆ
R IENDB`
Integer set class with efficient storage in a RLE format of ranges.
Supports minus and plus infinity in the range.
|
__init__(self,
*args,
**kwargs)
Initialize an integer set. |
|
|
|
_iterranges(self,
r1,
r2,
minval=None,
maxval=None) |
|
|
|
|
|
|
|
__and__(self,
other)
Intersection of two sets as a new set. |
|
|
|
__rand__(self,
other)
Intersection of two sets as a new set. |
|
|
|
intersection(self,
other)
Intersection of two sets as a new set. |
|
|
|
__or__(self,
other)
Union of two sets as a new set. |
|
|
|
__ror__(self,
other)
Union of two sets as a new set. |
|
|
|
union(self,
other)
Union of two sets as a new set. |
|
|
|
__sub__(self,
other)
Difference of two sets as a new set. |
|
|
|
__rsub__(self,
other)
Difference of two sets as a new set. |
|
|
|
difference(self,
other)
Difference of two sets as a new set. |
|
|
|
__xor__(self,
other)
Symmetric difference of two sets as a new set. |
|
|
|
__rxor__(self,
other)
Symmetric difference of two sets as a new set. |
|
|
|
symmetric_difference(self,
other)
Symmetric difference of two sets as a new set. |
|
|
|
__contains__(self,
other)
Returns true if self is superset of other. |
|
|
|
issubset(self,
other)
Returns true if self is subset of other. |
|
|
|
istruesubset(self,
other)
Returns true if self is true subset of other. |
|
|
|
issuperset(self,
other)
Returns true if self is superset of other. |
|
|
|
istruesuperset(self,
other)
Returns true if self is true superset of other. |
|
|
|
overlaps(self,
other)
Returns true if self overlaps with other. |
|
|
|
__eq__(self,
other)
Returns true if self is equal to other. |
|
|
|
__ne__(self,
other)
Returns true if self is different to other. |
|
|
|
inverse(self)
Inverse of set as a new set. |
|
|
|
__invert__(self)
Inverse of set as a new set. |
|
|
|
__hash__(self)
Returns a hash value representing this integer set. |
|
|
|
__len__(self)
Get length of this integer set. |
|
|
|
len(self)
Returns the length of this integer set as an integer. |
|
|
|
__nonzero__(self)
Returns true if this integer set contains at least one item. |
|
|
|
__bool__(self)
Returns true if this integer set contains at least one item. |
|
|
|
__iter__(self)
Iterate over all values in this integer set. |
|
|
|
__repr__(self)
Return a representation of this integer set. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|