|
|
@@ -1,6 +1,9 @@ |
|
|
|
"""Interval and IntervalSet |
|
|
|
|
|
|
|
Represents an interval of time, and a set of such intervals.""" |
|
|
|
Represents an interval of time, and a set of such intervals. |
|
|
|
|
|
|
|
Intervals are half-open, ie. they include timestamps [start, end) |
|
|
|
""" |
|
|
|
|
|
|
|
# First implementation kept a sorted list of intervals and used |
|
|
|
# biesct() to optimize some operations, but this was too slow. |
|
|
|