Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | reset |
def | __cmp__ |
def | __hash__ |
def | __repr__ |
def | normalize |
def | tostring |
def | tolist |
def | fromlist |
def | clone |
def | min |
def | max |
def | contains |
def | append |
def | addpair |
def | fromstring |
Data Fields | |
pairs | |
sep | |
rng | |
Class implementing sets of integers. This is an efficient representation for sets consisting of several continuous ranges, e.g. 1-100,200-400,402-1000 is represented internally as a list of three pairs: [(1,100), (200,400), (402,1000)]. The internal representation is always kept normalized. The constructor has up to three arguments: - the string used to initialize the set (default ''), - the separator between ranges (default ',') - the separator between begin and end of a range (default '-') The separators must be strings (not regexprs) and should be different. The tostring() function yields a string that can be passed to another IntSet constructor; __repr__() is a valid IntSet constructor itself.
def __cmp__ | ( | self, | |
other | |||
) |
Definition at line 799 of file mhlib.py.
References filecmp.cmp(), and IntSet.pairs.
def __hash__ | ( | self) |
def __repr__ | ( | self) |
Definition at line 805 of file mhlib.py.
References IntSet.rng, IntSet.sep, and IntSet.tostring().
def addpair | ( | self, | |
xlo, | |||
xhi | |||
) |
def append | ( | self, | |
x | |||
) |
def clone | ( | self) |
def contains | ( | self, | |
x | |||
) |
def fromlist | ( | self, | |
list | |||
) |
Definition at line 836 of file mhlib.py.
References ParsingError.append(), Unmarshaller.append, Unpickler.append, and IntSet.append().
def fromstring | ( | self, | |
data | |||
) |
Definition at line 886 of file mhlib.py.
References IntSet.normalize(), IntSet.pairs, IntSet.rng, and IntSet.sep.
def max | ( | self) |
def min | ( | self) |
def normalize | ( | self) |
Definition at line 809 of file mhlib.py.
References IntSet.max(), and IntSet.pairs.
def reset | ( | self) |
def tolist | ( | self) |
def tostring | ( | self) |
Definition at line 820 of file mhlib.py.
References IntSet.pairs, IntSet.rng, and IntSet.sep.