FrozenIntervalDict

class part.FrozenIntervalDict(iterable=None)

Frozen Interval Dictionary class.

The FrozenIntervalDict class (which inherits from the IntervalDict class) is designed to hold frozen dict of disjoint intervals.

__init__(iterable=None)

Initialize a FrozenIntervalDict instance.

Parameters

iterable (Iterable) – An optional iterable that can be converted to a dictionary of ( interval, value).

__hash__()

A FrozenIntervalDict instance is hashable.

It can be used as key in dictionaries.