Application Programming InterfaceΒΆ
The part package is designed to maintain subsets of sorted spaces.
It defines several classes.
For atomic values:
TotallyOrderedwhich represents totally ordered type;TOwhich represents a generic totally ordered type;Atomicwhich represents any convex subset of a totally ordered space;Emptywhich represents the empty subset. There is only one instance of this class;Intervalwhich represents a non-empty subset of a totally ordered space. There is a special instance representing the whole space;
For set classes:
IntervalSetis an abstract class representing all interval sets;FrozenIntervalSetis a frozen version ofIntervalSet;MutableIntervalSetis a mutable version ofIntervalSet.
For dictionary classes:
IntervalDictis an abstract class representing all interval dictionaries;FrozenIntervalDictis a frozen version ofIntervalDict;MutableIntervalDictis a mutable version ofIntervalDict.
It also defines one constant:
INFINITYto hold the infinity value. (-INFINITYis also a valid expression);