FrozenIntervalDict¶
-
class
part.FrozenIntervalDict(iterable=None)¶ Frozen Interval Dictionary class.
The
FrozenIntervalDictclass (which inherits from theIntervalDictclass) is designed to hold frozen dict of disjoint intervals.-
__init__(iterable=None)¶ Initialize a
FrozenIntervalDictinstance.- Parameters
iterable (
Iterable) – An optional iterable that can be converted to a dictionary of ( interval, value).
-
__hash__()¶ A
FrozenIntervalDictinstance is hashable.It can be used as key in dictionaries.
-